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.
Classic Buffer Overflow
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
7.5 HIGH
NETWORK
HIGH
LOW
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
phpCNA
7.5 HIGH
NETWORK
HIGH
LOW
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 94%
VendorProductVersion
phpphp
7.4.0 ≤
𝑥
< 7.4.30
phpphp
8.0.0 ≤
𝑥
< 8.0.20
phpphp
8.1.0 ≤
𝑥
< 8.1.7
debiandebian_linux
10.0
debiandebian_linux
11.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
php7.4
bullseye
7.4.33-1+deb11u5
fixed
stretch
postponed
bullseye (security)
7.4.33-1+deb11u6
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
php5
noble
dne
mantic
dne
lunar
dne
kinetic
dne
jammy
dne
impish
dne
focal
dne
bionic
dne
xenial
dne
trusty
needed
php7.0
noble
dne
mantic
dne
lunar
dne
kinetic
dne
jammy
dne
impish
dne
focal
dne
bionic
dne
xenial
Fixed 7.0.33-0ubuntu0.16.04.16+esm4
released
trusty
dne
php7.2
noble
dne
mantic
dne
lunar
dne
kinetic
dne
jammy
dne
impish
dne
focal
dne
bionic
Fixed 7.2.24-0ubuntu0.18.04.12
released
xenial
dne
trusty
dne
php7.4
noble
dne
mantic
dne
lunar
dne
kinetic
dne
jammy
dne
impish
dne
focal
Fixed 7.4.3-4ubuntu2.12
released
bionic
dne
xenial
dne
trusty
dne
php8.0
noble
dne
mantic
dne
lunar
dne
kinetic
dne
jammy
dne
impish
Fixed 8.0.8-1ubuntu0.4
released
focal
dne
bionic
dne
xenial
dne
trusty
dne
php8.1
noble
dne
mantic
dne
lunar
Fixed 8.1.5-1ubuntu2
released
kinetic
Fixed 8.1.5-1ubuntu2
released
jammy
Fixed 8.1.2-1ubuntu2.1
released
impish
dne
focal
dne
bionic
dne
xenial
dne
trusty
dne