VDB

CVE-2022-31626

CVE-2022-31626 PUBLISHED CVSS 7.5 HIGH

mysqlnd/pdo password buffer overflow

Reported by php · Published June 16, 2022

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
phpArch Linux8.1.7-1
php8Alpine8.0.25-r0, 8.0.24-r0
php81Alpine8.1.7-r0, 8.1.6-r2
libphpBitnami8.1.7, 8.0.20, 7.4.30
phpBitnami8.1.7, 8.0.20, 7.4.30
php-minBitnami8.1.7, 8.0.20, 7.4.30
php7Alpine7.4.32-r0
PHPPHP Group8.1.7, 8.0.20, 7.4.30
phpphp8.1.7, 8.0.20, 7.4.30
php-minBitnami8.1.7, 8.0.20, 7.4.30
libphpBitnami8.1.7, 8.0.20, 7.4.30
phpBitnami8.1.7, 8.0.20, 7.4.30

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
PHP GroupPHP7.4.X, 8.0.X, 8.1.X
archphp0
alpinephp80, 0
PHP GroupPHP7.4.X, 8.0.X, 8.1.X
alpinephp810, 0
alpinephp70

Timeline

  • Jun 9, 2022 CVE Published
  • Jun 16, 2022 EPSS Score (30 in total, the first dated here)
  • Sep 17, 2024 CVE Updated
  • Mar 10, 2026 Distribution Patch (12 in total, the first dated here)
  • Mar 10, 2026 Security Advisory (15 in total, the first dated here)
  • Jun 24, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-31626
vulnetix vdb fixes CVE-2022-31626

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-31626/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›