CVE-2007-1582
PHP 4.0.0-4.4.6 and 5.0.0-5.2.1 - Remote Code Execution via Userspace Error Handler
Title source: manualExploitation Summary
EIP tracks 1 public exploit for CVE-2007-1582. PoCs published by Stefan Esser.
AI-analyzed exploit summary This exploit leverages a use-after-free vulnerability in PHP's GD library to achieve remote code execution by overwriting memory structures and executing shellcode. It includes a bindshell payload and uses the substr_compare() vulnerability to calculate memory offsets dynamically.
Description
The resource system in PHP 4.0.0 through 4.4.6 and 5.0.0 through 5.2.1 allows context-dependent attackers to execute arbitrary code by interrupting certain functions in the GD (ext/gd) extension and unspecified other extensions via a userspace error handler, which can be used to destroy and modify internal resources.
Exploits (1)
This exploit leverages a use-after-free vulnerability in PHP's GD library to achieve remote code execution by overwriting memory structures and executing shellcode. It includes a bindshell payload and uses the substr_compare() vulnerability to calculate memory offsets dynamically.