Skip to content
7.5 High

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…

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 products and versions

Product Affected versions Fixed in
PHP 8.1 8.1.X → < 8.1.7 8.1.7
PHP 8.0 8.0.X → < 8.0.20 8.0.20
PHP 7.4 7.4.X → < 7.4.30 7.4.30

References

Timeline

  1. Published
  2. Last modified
The 103 CVEs of PHP →
Track this CVE