← All CVEs

CVE-2022-31626

high · 7.5

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.

7.5
CVSS
58.1%
EPSS (exploit prob.)
99th
EPSS percentile
2022-06-16
Published

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

Weaknesses

CWE-120

Affected products

VendorProductAffected versions
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

Check a specific version with /api/v1/cve/match.

References

Query this programmatically:

curl https://evil-db.io/api/v1/cve/CVE-2022-31626