CVE-2022-31626: mysqlnd/pdo password buffer overflow
Vulnerability summary
CVE-2022-31626 is a high (CVSS 8.8) vulnerability in debian debian_linux. EPSS estimates a 58.12% chance of exploitation in the next 30 days, higher than 99% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (reference, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 17 · Related 13Timeline
- 16-06-2022PublishedVulnerability first disclosed.
- 17-09-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 6 sources · 2 versions- CVE.orgCNA7.5HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HDiffers
- OSV · Red hatEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · AlpineEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
58.12%
Chance of exploitation in the next 30 days
Percentile
99%
Versus all other CVEs
30-day change
No change 0.00 pp
From 58.12% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (bugs.php.net)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Redhat78 products
- apcu-panel< 0:5.1.18-1.module+el8.3.0+6678+b09f589e | < 0:5.1.20-1.module+el8.6.0+13671+84712317
- libzip< 0:1.6.1-1.module+el8.3.0+6678+b09f589e | < 0:1.7.3-1.module+el8.6.0+13671+84712317
- libzip-debuginfo< 0:1.6.1-1.module+el8.3.0+6678+b09f589e | < 0:1.7.3-1.module+el8.6.0+13671+84712317
- libzip-debugsource< 0:1.6.1-1.module+el8.3.0+6678+b09f589e | < 0:1.7.3-1.module+el8.6.0+13671+84712317
- libzip-devel< 0:1.6.1-1.module+el8.3.0+6678+b09f589e | < 0:1.7.3-1.module+el8.6.0+13671+84712317
Ubuntu5 products
- php5All versions (No fix recorded)
- php7.0< 7.0.33-0ubuntu0.16.04.16+esm4
- php7.2< 7.2.24-0ubuntu0.18.04.12
- php7.4< 7.4.3-4ubuntu2.12
- php8.1< 8.1.2-1ubuntu2.1
Alpine3 products
- php7< 7.4.32-r0
- php8< 8.0.24-r0 | < 8.0.25-r0
- php81< 8.1.7-r0 | < 8.1.6-r2
Debian2 products
- php7.4< 7.4.30-1+deb11u1
- debian_linuxEOL10.0 | 11.0
Php1 product
- php≥ 7.4.0, < 7.4.30 | ≥ 8.0.0, < 8.0.20 | ≥ 8.1.0, < 8.1.7
Php group1 product
- php≥ 7.4.X, < 7.4.30 | ≥ 8.0.X, < 8.0.20 | ≥ 8.1.X, < 8.1.7
6 vendors · 90 products
References
25 links- lists.fedoraproject.org/archives/…Vendor Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory
- security.netapp.com/advisory/ntap-20220722-0005/Third Party Advisory