CVE & CISA-KEV Catalog

CVE-2022-31625

HIGHEPSS 88th pctl
8.1
CVSS v3
NVD

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.

How to fix

Remediation Available
php7.4Debian
Fixed in:7.4.30-1+deb11u1CVE-2022-31625
libapache2-mod-php7.0Ubuntu
Fixed in:7.0.33-0ubuntu0.16.04.16+esm4USN-5479-2
libapache2-mod-php7.2Ubuntu
Fixed in:7.2.24-0ubuntu0.18.04.12USN-5479-1
Fixed in:7.2.24-0ubuntu0.18.04.13USN-5479-3
libapache2-mod-php7.4Ubuntu
Fixed in:7.4.3-4ubuntu2.12USN-5479-1
libapache2-mod-php8.1Ubuntu
Fixed in:8.1.2-1ubuntu2.1USN-5479-1
php7.0Ubuntu
Fixed in:7.0.33-0ubuntu0.16.04.16+esm4USN-5479-2
php7.0-cgiUbuntu
Fixed in:7.0.33-0ubuntu0.16.04.16+esm4USN-5479-2
php7.0-cliUbuntu
Fixed in:7.0.33-0ubuntu0.16.04.16+esm4USN-5479-2
php7.0-fpmUbuntu
Fixed in:7.0.33-0ubuntu0.16.04.16+esm4USN-5479-2
php7.0-mysqlUbuntu
Fixed in:7.0.33-0ubuntu0.16.04.16+esm4USN-5479-2
php7.0-pgsqlUbuntu
Fixed in:7.0.33-0ubuntu0.16.04.16+esm4USN-5479-2
php7.2Ubuntu
Fixed in:7.2.24-0ubuntu0.18.04.13USN-5479-3
Fixed in:7.2.24-0ubuntu0.18.04.12USN-5479-1
php7.2-cgiUbuntu
Fixed in:7.2.24-0ubuntu0.18.04.13USN-5479-3
Fixed in:7.2.24-0ubuntu0.18.04.12USN-5479-1
php7.2-cliUbuntu
Fixed in:7.2.24-0ubuntu0.18.04.13USN-5479-3
Fixed in:7.2.24-0ubuntu0.18.04.12USN-5479-1
php7.2-fpmUbuntu
Fixed in:7.2.24-0ubuntu0.18.04.13USN-5479-3
Fixed in:7.2.24-0ubuntu0.18.04.12USN-5479-1
php7.2-mysqlUbuntu
Fixed in:7.2.24-0ubuntu0.18.04.12USN-5479-1
php7.2-pgsqlUbuntu
Fixed in:7.2.24-0ubuntu0.18.04.13USN-5479-3
Fixed in:7.2.24-0ubuntu0.18.04.12USN-5479-1
php7.4Ubuntu
Fixed in:7.4.3-4ubuntu2.12USN-5479-1
php7.4-cgiUbuntu
Fixed in:7.4.3-4ubuntu2.12USN-5479-1
php7.4-cliUbuntu
Fixed in:7.4.3-4ubuntu2.12USN-5479-1
php7.4-fpmUbuntu
Fixed in:7.4.3-4ubuntu2.12USN-5479-1
php7.4-mysqlUbuntu
Fixed in:7.4.3-4ubuntu2.12USN-5479-1
php7.4-pgsqlUbuntu
Fixed in:7.4.3-4ubuntu2.12USN-5479-1
php8.1Ubuntu
Fixed in:8.1.2-1ubuntu2.1USN-5479-1
php8.1-cgiUbuntu
Fixed in:8.1.2-1ubuntu2.1USN-5479-1
php8.1-cliUbuntu
Fixed in:8.1.2-1ubuntu2.1USN-5479-1
php8.1-fpmUbuntu
Fixed in:8.1.2-1ubuntu2.1USN-5479-1
php8.1-mysqlUbuntu
Fixed in:8.1.2-1ubuntu2.1USN-5479-1
php8.1-pgsqlUbuntu
Fixed in:8.1.2-1ubuntu2.1USN-5479-1

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

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

Exploit Intelligence

3.44%probability of exploitation in 30 days
88thpercentile

Elevated risk: more likely to be exploited than 88% of all known CVEs.

References

Related Vulnerabilities

Other CWE-590 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2020-6016Critical9.85.8%-Fix
CVE-2021-42377Critical9.83.4%-Fix
CVE-2022-31627High7.72.0%-Fix
CVE-2023-25565High7.51.1%-Fix
CVE-2025-32911Critical9.00.9%-Fix
CVE-2023-42459High8.60.8%-Fix

Common questions

How do I fix CVE-2022-31625?

Published advisories record a fix for 29 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2022-31625 being actively exploited?

Not that we know of. CVE-2022-31625 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 3.4% is the estimated probability that it will be exploited in the next 30 days. That is higher than 88% of all scored CVEs.

How severe is CVE-2022-31625?

CVE-2022-31625 has a CVSS v3 base score of 8.1, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2022-31625 affect?

Published advisories record a fix for php7.4 (Debian), libapache2-mod-php7.0 (Ubuntu), libapache2-mod-php7.2 (Ubuntu), libapache2-mod-php7.4 (Ubuntu), and 25 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2022-31625
CVE-2022-31625 severity badge

Markdown

[![CVE-2022-31625](https://tridentstack.com/cve/badge/CVE-2022-31625.svg)](https://tridentstack.com/cve/CVE-2022-31625)

HTML

<a href="https://tridentstack.com/cve/CVE-2022-31625"><img src="https://tridentstack.com/cve/badge/CVE-2022-31625.svg" alt="CVE-2022-31625"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.