CVE-2022-31626
mysqlnd/pdo password buffer overflow
8.8
HIGH
CVSS 3.1
EPSS 10.2%
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.
How to fix CVE-2022-31626
To remediate CVE-2022-31626, upgrade the affected package to a fixed version below.
- —upgrade to 7.4.30 or later
- —upgrade to 7.4.30 or later
- —upgrade to 7.4.30 or later
- —upgrade to 7.4.30-1+deb11u1 or later
Is CVE-2022-31626 being exploited?
Moderate — EPSS is 10.2%. Track this CVE but it's not at the top of the prioritisation list.
Affected packages (4)
- >= 7.4.0, < 7.4.30, >= 8.0.0, < 8.0.20, >= 8.1.0, < 8.1.7
- >= 7.4.0, < 7.4.30, >= 8.0.0, < 8.0.20, >= 8.1.0, < 8.1.7
- >= 7.4.0, < 7.4.30, >= 8.0.0, < 8.0.20, >= 8.1.0, < 8.1.7
- from 0, < 7.4.30-1+deb11u1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |