CVE-2022-31626
HIGHPHP <7.4.30, <8.0.20, and <8.1.7 - Code Execution via pdo_mysql Buffer Overflow
Title source: manualExploitation Summary
EIP tracks 1 public exploit for CVE-2022-31626. PoCs published by amitlttwo.
AI-analyzed exploit summary This PoC exploits a buffer overflow in PHP's pdo_mysql extension (CVE-2022-31626) by sending a crafted POST request with an excessively long password, leading to remote code execution. The exploit includes heap manipulation and memory leak techniques to achieve reliability.
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.
Exploits (1)
This PoC exploits a buffer overflow in PHP's pdo_mysql extension (CVE-2022-31626) by sending a crafted POST request with an excessively long password, leading to remote code execution. The exploit includes heap manipulation and memory leak techniques to achieve reliability.
References (7)
Scores
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H