CVE-2022-31626

mysqlnd/pdo password buffer overflow

State
Published
Severity
7.5 High
Published
Jun 16, 2022
Updated
Sep 17, 2024
Reserved
May 25, 2022

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:Hphp

Weaknesses

Affected Products

ProductVersions
PHPPHP Group
  • 7.4.X to before 7.4.30Affected
  • 8.0.X to before 8.0.20Affected
  • 8.1.X to before 8.1.7Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.