All vulnerabilities

Servers and applications

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 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.

Severity
High 8.8
Published
16 Jun 2022
Last changed
17 Jun 2026
Added to UpHeron
14 Oct 2026
Fixed in
7.4.30, 8.0.20, 8.1.7
Sources
NVD

Affected software

SoftwareAffected versions
PHPServers and applications · cpe:a:php:php
  • From 7.4.0 before 7.4.30
  • From 8.0.0 before 8.0.20
  • From 8.1.0 before 8.1.7

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2022-31626
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2022-31626