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
VendorProductAffected 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.
Fix within
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
Exploitation
27% chance of attack within 30 days
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