Predictive Vulnerability Intelligence.

Product

  • Product
  • Pricing
  • Documentation

Company

  • About
  • Partnerships
  • Blog
  • Support

Legal

  • Terms
  • Privacy
  • Data Licensing

© 2026 FAUCET Technologies LLC. All rights reserved.

CVE-2022-31625

28
FAUCET Score

CVE-2022-31625 is a critical vulnerability affecting 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 utilizing the PostgreSQL database extension. This flaw allows attackers to trigger an attempt to free uninitialized memory by supplying invalid parameters to a parametrized query, potentially leading to Remote Code Execution (RCE) or Denial of Service (DoS). With a CVSS score of 8.1 (HIGH), this vulnerability is remotely exploitable with high impact on confidentiality, integrity, and availability, though it has high attack complexity. Currently, there is no evidence of active exploitation, public exploit code (Metasploit, Nuclei, ExploitDB), or significant community discussion or media coverage.

Impacted Technologies

VendorProductVersion(s)CPE
>= 7.4.0, < 7.4.30CPE matchmatch criteria
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
>= 8.0.0, < 8.0.20CPE matchmatch criteria
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
>= 8.1.0, < 8.1.7CPE matchmatch criteria
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
10.0CPE matchmatch criteria
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
11.0CPE matchmatch criteria
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*

CVSS Data

CVSS version used by this source: 3.1

8.1HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
Exploitability Score
2.2
Impact Score
5.9
CvssVersion
3.1

Exploit Intelligence

EPSS Score
3.44%
Probability of exploitation in next 30 days
EPSS Percentile
87.7%
Percentile rank of EPSS score among Peer Group
As of 2026-07-27
Model: v2026.06.15
This CVE's current EPSS score of 0.0344 is in the 47th percentile among its peer group of 8,920 CVEs.

Social Chatter

The average CVE in this peer group has 0.0 Twitter, 0.1 Reddit, 0.1 Bluesky, 0.1 Mastodon, and 0.2 GitHub mentions.

Media Mentions

No media coverage found for this CVE.

The average CVE in this peer group has 0.1 InfoSec Media, 0.0 Vendor Blog, and 0.0 Security Researcher mentions.

Remediation

Patch Available

Vendor Patches (7)

githubpatch availablevia llm_extracted
View patch
microsoftpatch availablevia msrc
Product: 19641-16823
microsoftpatch availablevia msrc
Product: cbl2 php on CBL Mariner 2.0
redhatpatch availablevia redhat_api
Product: Red Hat Enterprise Linux 8Fixed in: php:7.4-8060020220811045407.5caa48ff
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Software Collections for Red Hat Enterprise Linux 7Fixed in: rh-php73-php-0:7.3.33-1.el7
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Enterprise Linux 8Fixed in: php:8.0-8070020220801083134.afd00e68
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Enterprise Linux 9Fixed in: php-0:8.0.20-3.el9
View patch

Vendor Advisories (3)

githubllm-github-97fc759cd1e6bb18HIGH

AS-2022-010: PHP

Aug 3, 2022
microsoft2022-Jun/CVE-2022-31625Important

Freeing unallocated memory in php_pgsql_free_params()

Jun 14, 2022
redhatCVE-2022-31625Moderate

php: Uninitialized array in pg_query_params() leading to RCE

May 16, 2022

References

bugs.php.net / bug.php
ExploitIssue TrackingMailing ListPatchVendor Advisory
lists.debian.org / debian-lts-announce/2022/12/msg00030.html
Mailing ListThird Party Advisory
lists.fedoraproject.org / archives/list/package-announce%40lists.fedoraproject.org/message/3T4MMEEZYYAEHPQMZDFN44PHORJWJFZQ
lists.fedoraproject.org / archives/list/package-announce%40lists.fedoraproject.org/message/ZZTZQKRGEYJT5UB4FGG3MOE72SQUHSL4
security.gentoo.org / glsa/202209-20
Third Party Advisory
security.netapp.com / advisory/ntap-20220722-0005
Third Party Advisory
debian.org / security/2022/dsa-5179
Third Party Advisory