CVE-2007-1399

CRITICAL

PHP 5.2.0-5.2.1 - Remote Code Execution via Long zip:// URL

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2007-1399. PoCs published by Stefan Esser.

AI-analyzed exploit summary This exploit targets a stack buffer overflow in PHP's zip:// URL wrapper (CVE-2007-1399) to execute arbitrary shellcode. It constructs a malicious filename with a long string of 'A's followed by shellcode and a return address to trigger the overflow.

Description

Stack-based buffer overflow in the zip:// URL wrapper in PECL ZIP 1.8.3 and earlier, as bundled with PHP 5.2.0 and 5.2.1, allows remote attackers to execute arbitrary code via a long zip:// URL, as demonstrated by actively triggering URL access from a remote PHP interpreter via avatar upload or blog pingback.

Exploits (1)

exploitdb WORKING POC VERIFIED
by Stefan Esser · phplocallinux
https://www.exploit-db.com/exploits/3440

This exploit targets a stack buffer overflow in PHP's zip:// URL wrapper (CVE-2007-1399) to execute arbitrary shellcode. It constructs a malicious filename with a long string of 'A's followed by shellcode and a return address to trigger the overflow.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: PHP (versions affected by CVE-2007-1399)
No auth needed
Prerequisites: PHP with vulnerable zip:// wrapper enabled · Ability to execute PHP code on the target system
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (10)

Core 10
Core References
Exploit, Vendor Advisory x_refsource_misc
http://www.php-security.org/MOPB/MOPB-16-2007.html
Not Applicable third-party-advisory x_refsource_secunia
http://secunia.com/advisories/24514
Broken Link vdb-entry x_refsource_osvdb
http://www.osvdb.org/32782
Broken Link vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/22883
Mailing List, Third Party Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2007/dsa-1330
Not Applicable vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2007/0898
Not Applicable third-party-advisory x_refsource_secunia
http://secunia.com/advisories/24471
Third Party Advisory vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/32889
Not Applicable third-party-advisory x_refsource_secunia
http://secunia.com/advisories/25938

Scores

CVSS v3 9.8
EPSS 0.3902
EPSS Percentile 97.4%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Details

Status published
Products (3)
php/php 5.2.0
php/php 5.2.1
pierrejoye/php_zip < 1.8.4
Published Mar 10, 2007
Tracked Since Feb 18, 2026