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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 4.0 | php5 | 5.2.0-8+etch7 | DSA-1330-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- PHP 5.2.0 / PHP with PECL ZIP 1.8.3 - 'zip://' URL Wrapper Buffer Overflow EDB-3440 · local · Mar 9, 2007 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 1
- DSA-1330-1 php5 - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
References
- http://www.php-security.org/MOPB/MOPB-16-2007.html
- 24514 third-party-advisory
- 32782 vdb-entry
- 22883 vdb-entry
- SUSE-SA:2007:020 vendor-advisory
- DSA-1330 vendor-advisory
- ADV-2007-0898 vdb-entry
- 24471 third-party-advisory
- pecl-url-wrapper-bo(32889) vdb-entry
- 25938 third-party-advisory