CVE-2022-31626mysqlnd/pdo password buffer overflow
- 7.5HighCVSS base score
- 58.1%Exploitation in 30 daysEPSS · top 0.9% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By php
- 22 days later
· 22 days later
Published
- 2 years later
· 2 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| phpCNA (assigner) | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Modified | 3.1 | High8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 58.1% · top 0.9% of all CVEs (18 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Affected products
References
References7
- https://bugs.php.net/bug.php?id=81719 (opens in a new tab)x_transferred
- FEDORA-2022-0a96e5b9b1 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-f3fc52428e (opens in a new tab)vendor-advisoryx_transferred
- DSA-5179 (opens in a new tab)vendor-advisoryx_transferred
- https://security.netapp.com/advisory/ntap-20220722-0005/ (opens in a new tab)x_transferred
- GLSA-202209-20 (opens in a new tab)vendor-advisoryx_transferred
- [debian-lts-announce] 20221215 [SECURITY] [DLA 3243-1] php7.3 security update (opens in a new tab)mailing-listx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2022-53078 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2022-31626)Record last updated .