CVE-2022-31626CWE-120

mysqlnd/pdo password buffer overflow

High · published June 16, 2022

Patch now

High probability of exploitation

CVSS calls it high at 7.5. It sits in the 99.1th percentile for exploit probability.

CVSS v3.1
7.5
EPSS
58%
Percentile
99.1
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.58123 · 99.1th percentile
Weakness
CWE-120 · Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
Published
2022-06-16T05:45Z
EPSS history
Timeline
  • 16 JUN 05:45Z
    mysqlnd/pdo password buffer overflow
    cvelistv5