CVE-2022-31626
JSON

7.5high

mysqlnd/pdo password buffer overflow

Severity
7.5high CVSS:3.1 by php
Exploit likelihood
58.1% (higher than 99% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
php
Also known as
BIT-LIBPHP-2022-31626BIT-PHP-2022-31626BIT-PHP-MIN-2022-31626

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.

Affected

Product or packageVersionsReported by
PHP Group PHPfrom 7.4.X before 7.4.30, from 8.0.X before 8.0.20, from 8.1.X before 8.1.7CVE List
php phpfrom 7.4.0 before 7.4.30, from 8.0.0 before 8.0.20, from 8.1.0 before 8.1.7NVD
debian debian_linux10.0, 11.0NVD
libphp (Bitnami)from 7.4.0 before 7.4.30, from 8.0.0 before 8.0.20, from 8.1.0 before 8.1.7Bitnami Vulnerability Database
php (Bitnami)from 7.4.0 before 7.4.30, from 8.0.0 before 8.0.20, from 8.1.0 before 8.1.7Bitnami Vulnerability Database
php-min (Bitnami)from 7.4.0 before 7.4.30, from 8.0.0 before 8.0.20, from 8.1.0 before 8.1.7Bitnami Vulnerability Database

All scores

php7.5high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD6.0medium CVSS:2.0AV:N/AC:M/Au:S/C:P/I:P/A:P
Bitnami Vulnerability Databasehigh rating

Classification

What each source says

CVE List

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.

NVD (es)

En PHP versiones 7.4.x anteriores a 7.4.30, 8.0.x anteriores a 8.0.20 y 8.1.x anteriores a 8.1.7, cuando la extensión pdo_mysql con el controlador mysqlnd, si es permitido que el tercero suministre el host al que conectarse y la contraseña para la conexión, la contraseña de longitud excesiva puede desencadenar un desbordamiento de búfer en PHP, lo que puede conllevar a una vulnerabilidad de ejecución de código remota

References

https://bugs.php.net/bug.php?id=81719advisory, exploit, issue-tracking, mailing-list, patch, vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZZTZQKRGEYJT5UB4FGG3MOE72SQUHSL4/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3T4MMEEZYYAEHPQMZDFN44PHORJWJFZQ/vendor-advisory, web
https://www.debian.org/security/2022/dsa-5179advisory, third-party-advisory, vendor-advisory
https://security.netapp.com/advisory/ntap-20220722-0005/advisory, third-party-advisory
https://security.gentoo.org/glsa/202209-20advisory, third-party-advisory, vendor-advisory
https://lists.debian.org/debian-lts-announce/2022/12/msg00030.htmladvisory, mailing-list, third-party-advisory
https://nvd.nist.gov/vuln/detail/CVE-2022-31626web

Sources

SourceRecordLicence
CVE ListCVE-2022-31626 changed 2024-09-17CVE Terms of Use
NVDCVE-2022-31626 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-LIBPHP-2022-31626 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-PHP-2022-31626 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-PHP-MIN-2022-31626 changed 2026-09-08Apache-2.0