CVE-2022-31626: mysqlnd/pdo password buffer overflow
CVE-2022-31626 affects 15 listed versions of PHP in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
PHP
15 of 250 listed versions are affected. Fixed in 8.0.20, 7.4.30. The newest release, 8.6.0, is not affected.
8.0.19 8.0.18 8.0.17 8.0.16 7.4.29 7.4.28 7.4.27 7.4.26 7.4.25 7.4.24 7.4.23 7.4.22 7.4.21 7.4.20 7.4.19
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.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD)
Published by Php on 16 June 2022. Last changed 17 June 2026.
Sources
Check one version you run: look CVE-2022-31626 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.