Stack-based buffer overflow in PHP - CVE-2007-1399
Published: July 29, 2017 / Updated: June 12, 2025
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error when processing a long zip:// URL, as demonstrated by actively triggering URL access from a remote PHP interpreter via avatar upload or blog pingback. A remote unauthenticated attacker can trigger stack-based buffer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
Debian Linux
php5 (Debian package)
How to mitigate CVE-2007-1399
php5 (Debian package) - update to 5.2.0-8+etch7
Links to Public Exploits and PoC-codes
External References
- http://lists.suse.com/archive/suse-security-announce/2007-Mar/0003.html
- http://secunia.com/advisories/24471
- http://secunia.com/advisories/24514
- http://secunia.com/advisories/25938
- http://www.debian.org/security/2007/dsa-1330
- http://www.osvdb.org/32782
- http://www.php-security.org/MOPB/MOPB-16-2007.html
- http://www.securityfocus.com/bid/22883
- http://www.vupen.com/english/advisories/2007/0898
- https://exchange.xforce.ibmcloud.com/vulnerabilities/32889