{"id":"CVE-2022-31626","aliases":["CVE-2022-31626","BIT-LIBPHP-2022-31626","BIT-PHP-2022-31626","BIT-PHP-MIN-2022-31626"],"related":[],"kind":"vulnerability","state":"published","title":"mysqlnd/pdo password buffer overflow","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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","source":"nvd"}],"published":"2022-06-16T05:45:16.880Z","modified":"2026-09-08T08:48:24.728Z","severity":{"scorer":"php","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"php","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:P/I:P/A:P","score":6,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-120"],"affected":[{"ranges":[{"type":"custom","introduced":"7.4.X","fixed":"7.4.30","status":"affected"},{"type":"custom","introduced":"8.0.X","fixed":"8.0.20","status":"affected"},{"type":"custom","introduced":"8.1.X","fixed":"8.1.7","status":"affected"}],"vendor":"PHP Group","product":"PHP","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"7.4.0","fixed":"7.4.30"},{"status":"affected","introduced":"8.0.0","fixed":"8.0.20"},{"status":"affected","introduced":"8.1.0","fixed":"8.1.7"}],"vendor":"php","product":"php","cpe":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"},{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"7.4.0","status":"affected","fixed":"7.4.30"},{"type":"semver","introduced":"8.0.0","status":"affected","fixed":"8.0.20"},{"type":"semver","introduced":"8.1.0","status":"affected","fixed":"8.1.7"}],"ecosystem":"Bitnami","package":"libphp","purl":"pkg:bitnami/libphp","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"7.4.0","status":"affected","fixed":"7.4.30"},{"type":"semver","introduced":"8.0.0","status":"affected","fixed":"8.0.20"},{"type":"semver","introduced":"8.1.0","status":"affected","fixed":"8.1.7"}],"ecosystem":"Bitnami","package":"php","purl":"pkg:bitnami/php","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"7.4.0","status":"affected","fixed":"7.4.30"},{"type":"semver","introduced":"8.0.0","status":"affected","fixed":"8.0.20"},{"type":"semver","introduced":"8.1.0","status":"affected","fixed":"8.1.7"}],"ecosystem":"Bitnami","package":"php-min","purl":"pkg:bitnami/php-min","source":"bitnami"}],"references":[{"url":"https://bugs.php.net/bug.php?id=81719","tags":["advisory","exploit","issue-tracking","mailing-list","patch","vendor-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZZTZQKRGEYJT5UB4FGG3MOE72SQUHSL4/","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3T4MMEEZYYAEHPQMZDFN44PHORJWJFZQ/","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://www.debian.org/security/2022/dsa-5179","tags":["advisory","third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20220722-0005/","tags":["advisory","third-party-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://security.gentoo.org/glsa/202209-20","tags":["advisory","third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/12/msg00030.html","tags":["advisory","mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31626","tags":["web"],"sources":["bitnami"]}],"credits":["c dot fol at ambionics dot io"],"assigner":"php","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-31626","url":"https://www.cve.org/CVERecord?id=CVE-2022-31626","licence":"CVE Terms of Use","modified":"2024-09-17T03:38:54.950Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-31626","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31626","licence":"Public domain","modified":"2026-06-17T04:45:50.047Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-LIBPHP-2022-31626","url":"https://osv.dev/vulnerability/BIT-LIBPHP-2022-31626","licence":"Apache-2.0","modified":"2026-09-08T08:48:08.505Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PHP-2022-31626","url":"https://osv.dev/vulnerability/BIT-PHP-2022-31626","licence":"Apache-2.0","modified":"2026-09-08T08:48:18.343Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PHP-MIN-2022-31626","url":"https://osv.dev/vulnerability/BIT-PHP-MIN-2022-31626","licence":"Apache-2.0","modified":"2026-09-08T08:48:24.728Z"}],"updatedAt":"2026-11-25T22:58:12.417Z","epss":{"score":0.58123,"percentile":0.99105,"date":"2026-12-01T12:00:22.000Z"}}