CVE & CISA-KEV Catalog

CVE-2022-31626

HIGHEPSS 99th pctl
7.5
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 pdo_mysql extension with mysqlnd driver, if the third party is allowed to supply host to connect to and the password for the connection, password of excessive length can trigger a buffer overflow in PHP, which can lead to a remote code execution vulnerability.

How to fix

Remediation Available
php7.4Debian
Fixed in:7.4.30-1+deb11u1CVE-2022-31626
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
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.12USN-5479-1
php7.2-cgiUbuntu
Fixed in:7.2.24-0ubuntu0.18.04.12USN-5479-1
php7.2-cliUbuntu
Fixed in:7.2.24-0ubuntu0.18.04.12USN-5479-1
php7.2-fpmUbuntu
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.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 RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

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

Exploit Intelligence

58.38%probability of exploitation in 30 days
99thpercentile

Very high risk: more likely to be exploited than 99% of all known CVEs.

References

Related Vulnerabilities

Other CWE-120 (Classic Buffer Overflow) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2014-0195Medium6.8100%-Fix
CVE-2017-7269Critical9.8100%KEV-
CVE-2019-11043High8.799%KEV + RansomFix
CVE-2011-4862High10.095%-Fix
CVE-2007-5659High7.894%KEVFix
CVE-2022-3786High7.592%-Fix

Common questions

How do I fix CVE-2022-31626?

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-31626 being actively exploited?

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

How severe is CVE-2022-31626?

CVE-2022-31626 has a CVSS v3 base score of 7.5, 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-31626 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-31626
CVE-2022-31626 severity badge

Markdown

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

HTML

<a href="https://tridentstack.com/cve/CVE-2022-31626"><img src="https://tridentstack.com/cve/badge/CVE-2022-31626.svg" alt="CVE-2022-31626"></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.