Description
Integer 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.
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.11.2-1.2 | — |
| Debian 13 | libzip | 0.11.2-1.2 | — |
| Debian 12 | libzip | 0.11.2-1.2 | — |
| Debian 7 | php5 | 5.4.39-0+deb7u1 | DSA-3198-1 |
| Debian 6.0 | php5 | 5.3.3.1-7+squeeze26 | DLA-212-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 | libzip | 0.11.1-6.1 | SUSE-SU-2015:0668-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 | libzip | 0.11.1-6.1 | SUSE-SU-2015:0668-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 |
Advisories 7
- WID-SEC-2023-1281 PHP: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 31, 2026
- DLA-212-1 php5 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-3198-1 php5 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2015:0668-1 Security update for libzip SUSE / openSUSE Security Updates · Feb 4, 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
References
- DSA-3198 vendor-advisory
- http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=ef8fc4b53d92fbfcd8ef1abbd6f2f5fe2c4a11e5
- openSUSE-SU-2015:0615 vendor-advisory
- HPSBMU03409 vendor-advisory
- openSUSE-SU-2015:0644 vendor-advisory
- FEDORA-2015-4699 vendor-advisory
- FEDORA-2015-4556 vendor-advisory
- APPLE-SA-2015-09-30-3 vendor-advisory
- HPSBMU03380 vendor-advisory
- MDVSA-2015:079 vendor-advisory
- http://www.oracle.com/technetwork/topics/security/bulletinjul2015-2511963.html
- SSRT102066 vendor-advisory
- FEDORA-2015-4559 vendor-advisory
- http://php.net/ChangeLog-5.php
- https://support.apple.com/HT205267
- FEDORA-2015-4565 vendor-advisory
- https://bugs.php.net/bug.php?id=69253
- FEDORA-2015-4669 vendor-advisory
- http://hg.nih.at/libzip/rev/9f11d54f692e
- FEDORA-2015-4553 vendor-advisory
- 1031985 vdb-entry