Back
CVE-2022-31625Freeing unallocated memory in php_pgsql_free_params()
- 8.1HighCVSS base score
- 3.8%Exploitation in 30 daysEPSS · top 9.8% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By php
- 22 days later
· 22 days later
Published
- 2 years later
· 2 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| phpCNA (assigner) | 3.1 | High8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Modified | 3.1 | High8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 3.8% · top 9.8% of all CVEs (18 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.1.
Affected products
References
References7
- https://bugs.php.net/bug.php?id=81720 (opens in a new tab)x_transferred
- FEDORA-2022-0a96e5b9b1 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-f3fc52428e (opens in a new tab)vendor-advisoryx_transferred
- DSA-5179 (opens in a new tab)vendor-advisoryx_transferred
- https://security.netapp.com/advisory/ntap-20220722-0005/ (opens in a new tab)x_transferred
- GLSA-202209-20 (opens in a new tab)vendor-advisoryx_transferred
- [debian-lts-announce] 20221215 [SECURITY] [DLA 3243-1] php7.3 security update (opens in a new tab)mailing-listx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2022-53077 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2022-31625)Record last updated .