CVE-2022-31625: 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 param

high Affects PHP engine. Feed 2026.11.23.2, updated 2026-11-23; published .

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 param

Package
PHP engine PHP engine
Affected branches
7.4 → fixed in 7.4.30; 8.0 → fixed in 8.0.20; 8.1 → fixed in 8.1.7
Severity
high  CVSS 8.1
Exploitation
not on CISA KEV · EPSS 4% (90.3th percentile)
Remediation
Upgrade to 8.1.7 / 8.0.20 / 7.4.30. Branches older than 7.4 received no fix (end-of-life).
Published
2022-06-16
Source
php-src NEWS + NVD

References

NVD recordPHP engine advisories

Quick answers

Is CVE-2022-31625 being actively exploited?

It is not on CISA's Known Exploited Vulnerabilities list today. FIRST's EPSS model puts the chance of exploitation in the next 30 days at 4%.

Which version fixes CVE-2022-31625?

The fixed release depends on your PHP branch; see the table above.

How do I check whether I am affected?

Run `phpwarden scan`. phpwarden checks the exact version you have installed against this advisory.

Am I affected?

Find out in one command. phpwarden checks this host's PHP build against this advisory and 21,000+ others, ranked by real-world exploitation (CISA KEV + EPSS). Free, offline, open data.

# PHP projects (recommended)
composer require --dev phpwarden/phpwarden
# then
vendor/bin/phpwarden scan

# or, without Composer
pipx install phpwarden   &&   phpwarden scan

Running a fleet? Aggregate hosts into one report.

Install docs   How findings are ranked

Related advisories