Original 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.
Affected software
- PHP ≥ 8.0.0 < 8.0.20≥ 8.1.0 < 8.1.7≥ 7.4.0 < 7.4.30 Fixed in: 8.0.20, 8.1.7, 7.4.30 exact match
Details
- Published
- 2022-06-16
- Last modified
- 2024-09-17
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H- CWE
- CWE-120
- EPSS (30-day exploit probability)
- 58.12% (percentile 99)
References
- cve.org/CVE-2022-31626
- nvd.nist.gov/vuln/detail/CVE-2022-31626
- bugs.php.net/bug.php?id=81719
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3...
- www.debian.org/security/2022/dsa-5179
- security.netapp.com/advisory/ntap-20220722-0005/
- security.gentoo.org/glsa/202209-20
- lists.debian.org/debian-lts-announce/2022/12/msg00030.html
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.