Description
The _zip_name_locate function in zip_name_locate.c in the Zip extension in PHP before 5.3.6 does not properly handle a ZIPARCHIVE::FL_UNCHANGED argument, which might allow context-dependent attackers to cause a denial of service (NULL pointer dereference) via an empty ZIP archive that is processed with a (1) locateName or (2) statName operation.
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 14 | libzip | 0.10-1 | — |
| Debian 13 | libzip | 0.10-1 | — |
| Debian 12 | libzip | 0.10-1 | — |
| Debian 6.0 | php5 | 5.3.3-7+squeeze3 | DSA-2266-1 |
| Debian 5.0 | php5 | 5.2.6.dfsg.1-1+lenny12 | DSA-2266-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | libzip | 1.1.3-1.4 | openSUSE-SU-2024:10113-1 |
| openSUSE Tumbleweed | php5 | 5.6.28-1.1 | openSUSE-SU-2024:10344-1 |
| openSUSE Tumbleweed | php7 | 7.0.14-1.4 | openSUSE-SU-2024:10290-1 |
| openSUSE Tumbleweed | php8 | 8.0.11-1.1 | openSUSE-SU-2024:11169-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.3.5 libzip 0.9.3 - _zip_name_locate Null Pointer Dereference EDB-17004 · dos · Mar 18, 2011
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 5
- DSA-2266-1 php5 - several Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:10290-1 apache2-mod_php7-7.0.14-1.4 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10344-1 apache2-mod_php5-5.6.28-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10113-1 libzip-devel-1.1.3-1.4 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11169-1 php8-8.0.11-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
References
- MDVSA-2011:099 vendor-advisory
- HPSBOV02763 vendor-advisory
- SUSE-SR:2011:009 vendor-advisory
- FEDORA-2011-3636 vendor-advisory
- ADV-2011-0764 vdb-entry
- FEDORA-2011-3614 vendor-advisory
- 8146 third-party-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=688735
- 43621 third-party-advisory
- MDVSA-2011:053 vendor-advisory
- DSA-2266 vendor-advisory
- ADV-2011-0890 vdb-entry
- libzip-zipnamelocate-dos(66173) vdb-entry
- http://www.php.net/releases/5_3_6.php
- http://svn.php.net/viewvc/?view=revision&revision=307867
- 20110318 libzip 0.9.3 _zip_name_locate NULL Pointer Dereference (incl PHP 5.3.5) third-party-advisory
- http://www.php.net/ChangeLog-5.php
- http://www.php.net/archive/2011.php
- APPLE-SA-2011-10-12-3 vendor-advisory
- 20110318 libzip 0.9.3 _zip_name_locate NULL Pointer Dereference (incl PHP 5.3.5) mailing-list
- 17004 exploit
- FEDORA-2011-3666 vendor-advisory
- MDVSA-2011:052 vendor-advisory
- ADV-2011-0744 vdb-entry
- 46354 vdb-entry
- http://support.apple.com/kb/HT5002
- http://bugs.php.net/bug.php?id=53885