CVE-2022-31625

Freeing unallocated memory in php_pgsql_free_params()

State
Published
Severity
8.1 High
Published
Jun 16, 2022
Updated
Sep 16, 2024
Reserved
May 25, 2022

Read the record on cve.org

Description

In PHP versions 7.4.x below 7.4.30, 8.0.x below 8.0.20, and 8.1.x below 8.1.7, when using Postgres database extension, supplying invalid parameters to the parametrized query may lead to PHP attempting to free memory using uninitialized data as pointers. This could lead to RCE vulnerability or denial of service.

Scores

CVSSScoreVectorSource
3.18.1 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:Hphp

Weaknesses

  • CWE-590 Free of Memory not on the Heap
  • CWE-824 Access of Uninitialized Pointer

Affected Products

ProductVersions
PHPPHP Group
  • 7.4.X to before 7.4.30Affected
  • 8.0.X to before 8.0.20Affected
  • 8.1.X to before 8.1.7Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.