CVE-2022-31626

HIGHCVSS 8.8/10EPSS 58.38%

Last modified

CVE-2022-31626 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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.. EPSS estimates a 58.38% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
8.8/10

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

EPSS Probability
58.38%

99.0th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
PhpPhp>= 7.4.0, < 7.4.30
PhpPhp>= 8.0.0, < 8.0.20
PhpPhp>= 8.1.0, < 8.1.7
DebianDebian Linux10.0
DebianDebian Linux11.0

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2022-31626?
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 severe is CVE-2022-31626?
CVE-2022-31626 has a CVSS score of 8.8/10 (HIGH severity). The EPSS model estimates a 58.38% probability of exploitation in the next 30 days.
How do I fix CVE-2022-31626?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2022-31626?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST