Skip to content
OpenAdvisories
Unscored Public exploit CVE-2011-0421 EUVD-2011-0447GHSA-h3v6-hj58-cx74

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_UNCHA…

Published Mar 20, 2011 · Updated Aug 6, 2024 · Assigned by certcc

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.

ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 5

References