CVE-2022-31626

High

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.

SeverityHigh
CVSS7.5
Exploit probability—
ProductPhp
PublishedJun 16, 2022
First seenJun 16, 2022
Weakness typeCWE-120CWE-120

How to fix

Affected products

ProductAffected versionsFixed in
php php7.4.0 ≤ v < 7.4.30, 8.0.0 ≤ v < 8.0.20, 8.1.0 ≤ v < 8.1.77.4.30, 8.0.20, 8.1.7
debian debian_linux10.0, 11.0—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.