Patchfirst
CVE-2022-31626 Public exploit High · 7.5 EPSS 58.1%

mysqlnd/pdo password buffer overflow

PHP Group · PHP

Summary

A buffer overflow in the mysqlnd driver of PHP's pdo_mysql extension, affecting PHP 7.4.x below 7.4.30, 8.0.x below 8.0.20, and 8.1.x below 8.1.7, occurs when the password supplied for a connection is excessively long. An attacker who can supply the host to connect to and the connection password, with low privileges, can trigger the overflow, potentially leading to remote code execution under the conditions that the third party is permitted to set those connection parameters.

Official description · CVE.org

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.

Breakdown
30.1 / 100
Exploited
Not confirmed
Reports
0
Tactics
0/15

Public exploit code (PoC-in-GitHub) appeared 6 months after disclosure. No confirmed exploitation is recorded.

  1. Disclosedday 0
  2. Public exploit codePoC-in-GitHub+6 mo

techniques

No techniques linked

No ATT&CK techniques are linked to this CVE yet. MITRE CTID has not mapped it, and no report passage in the corpus ties it to a technique.

What security researchers reported

Not named in any threat report yet

References

7 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close