Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
7.5
CVE-2015-2331: PHP ZIP extension (libzip) can crash or be exploited
CVE-2015-2331 · published 11 years ago
Summary
Older versions of PHP's ZIP handling, which rely on libzip 0.11.2 or earlier, can be triggered by a specially crafted ZIP file to cause the application to crash or potentially run unwanted code. This affects PHP releases before 5.4.39, 5.5.23, and 5.6.7, as well as any software using the same libzip library. Upgrade PHP and libzip to the latest available versions to protect your systems.
What to do
The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.
Affected software
| Vendor | Product | Affected versions |
|---|---|---|
| nih | libzip |
<= 0.11.2 cpe:2.3:a:nih:libzip:*:*:*:*:*:*:*:* |
| php | php |
<= 5.4.38 5.5.0 5.5.1 5.5.2 5.5.3 5.5.4 5.5.5 5.5.6 5.5.7 5.5.8 5.5.9 5.5.10 19 more version ranges
cpe:2.3:a:php:php:*:*:*:*:*:*:*:* |
| debian | debian_linux |
7.0 cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* |
| fedoraproject | fedora |
22 cpe:2.3:o:fedoraproject:fedora:22:*:*:*:*:*:*:* |
| opensuse | opensuse |
13.1 13.2 cpe:2.3:o:opensuse:opensuse:13.1:*:*:*:*:*:*:* |
Original advisory text
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...
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.
References
- http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=ef8fc4b53d92fbfcd8ef1abbd6f2f5f...
- http://hg.nih.at/libzip/rev/9f11d54f692e Vendor Advisory
- http://lists.apple.com/archives/security-announce/2015/Sep/msg00008.html
- http://lists.fedoraproject.org/pipermail/package-announce/2015-April/154266.html
- http://lists.fedoraproject.org/pipermail/package-announce/2015-April/154276.html
- http://lists.fedoraproject.org/pipermail/package-announce/2015-April/154666.html
- http://lists.fedoraproject.org/pipermail/package-announce/2015-April/155299.html
- http://lists.fedoraproject.org/pipermail/package-announce/2015-April/155622.html
- http://lists.fedoraproject.org/pipermail/package-announce/2015-March/153983.html
- http://lists.opensuse.org/opensuse-updates/2015-03/msg00083.html
- http://lists.opensuse.org/opensuse-updates/2015-04/msg00002.html
- http://marc.info/?l=bugtraq&m=143403519711434&w=2
- http://marc.info/?l=bugtraq&m=143748090628601&w=2
- http://marc.info/?l=bugtraq&m=144050155601375&w=2
- http://php.net/ChangeLog-5.php
- http://www.debian.org/security/2015/dsa-3198
- http://www.mandriva.com/security/advisories?name=MDVSA-2015:079
- http://www.oracle.com/technetwork/topics/security/bulletinjul2015-2511963.html
- http://www.securitytracker.com/id/1031985
- https://bugs.php.net/bug.php?id=69253 Exploit
- https://support.apple.com/HT205267
Internet-facing
14 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically (estimated)
- Gives an attacker partial control (estimated)
Severity
7.5
High
Type
CWE-189Numeric Errors
Timeline
Published30 Mar 2015
Updated14 Oct 2026
First seen29 Sep 2026
Sources
CVE-2015-2331 · NVD
Track software like this
Free during beta