DescriptionInteger overflow in the _zip_cdir_new function in zip_dirent.c in libzip 0.11.2 and earlier, as used in the ZIP extension in PHP before 5.4.39, 5.5.x before 5.5.23, and 5.6.x before 5.6.7 and other products, allows remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a ZIP archive that contains many entries, leading to a heap-based buffer overflow.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub advisories/code/issues, web search, more)
ReferencesDLA-212-1, DSA-3198-1
Debian Bugs780713, 780756

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libzip (PTS)buster1.5.1-4fixed
bookworm, sid, bullseye1.7.3-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libzipsourcesqueeze(not affected)
libzipsourcewheezy(not affected)


[wheezy] - libzip <not-affected> (Vulnerable code introduced with added Zip64 support in 0.11)
[squeeze] - libzip <not-affected> (Vulnerable code introduced with added Zip64 support in 0.11)
libzip patch:

Search for package or bug name: Reporting problems