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 2 public exploits for CVE-2022-31626. PoCs published by amitlttwo, HORKimhab.
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 (2)
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.
This repository contains functional exploit code for CVE-2022-31626, a PHP remote code execution vulnerability via improper handling of MySQL connections and memory corruption in the PHP MySQLi extension. The exploit leverages heap manipulation and memory leaks to achieve arbitrary code execution.
References (7)
Scores
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H