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—
Product
Php
PublishedJun 16, 2022
First seenJun 16, 2022
Weakness typeCWE-120CWE-120
How to fix
Update
- php php7.4.30, 8.0.20, 8.1.7 or later
Vendor advisories
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZZTZQKRGEYJT5UB4FGG3MOE72SQUHSL4/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3T4MMEEZYYAEHPQMZDFN44PHORJWJFZQ/
- debian.org/security/2022/dsa-5179
- security.gentoo.org/glsa/202209-20
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| php php | 7.4.0 ≤ v < 7.4.30, 8.0.0 ≤ v < 8.0.20, 8.1.0 ≤ v < 8.1.7 | 7.4.30, 8.0.20, 8.1.7 |
| debian debian_linux | 10.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.