Buffer overflow in PHP
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.581 (99.1th percentile), scored .
High probability of exploitation in the next 30 days — patch promptly. 99th percentile — 99.1% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.581 · newest: 0.581 · change: 0.000
Affected products
- PHP
- PHP Group — versions 7.4.X, 8.0.X, 8.1.X
- Debian Linux — versions 10.0, 11.0
Weakness classification (CWE)
Public proof-of-concept exploits
References
- bugs.php.net/bug.php (Exploit, Patch, Mailing List, Issue Tracking, Vendor Advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (vendor-advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (vendor-advisory)
- www.debian.org/security/2022/dsa-5179 (vendor-advisory, Third Party Advisory)
- security.netapp.com/advisory/ntap-20220722-0005/ (Third Party Advisory)
- security.gentoo.org/glsa/202209-20 (vendor-advisory, Third Party Advisory)
- lists.debian.org/debian-lts-announce/2022/12/msg00030.html (mailing-list, Mailing List, Third Party Advisory)
Frequently asked questions
- What is CVE-2022-31626?
- CVE-2022-31626 is a high-severity vulnerability in PHP, classified under Buffer Copy without Checking Size of Input (Classic Buffer Overflow). CVSS score: 7.5/10. Published 2022-06-16.
- How severe is CVE-2022-31626?
- High severity. CVSS v3 base score is 7.5 out of 10.
- Is CVE-2022-31626 known to be exploited?
- 9 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.