CVE-2015-2331Libzip Integer Overflow
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…
Published Mar 30, 2015 · Updated Aug 4, 2026 · Also known as DEBIAN-CVE-2015-2331, SUSE-SU-2015:0668-1, UBUNTU-CVE-2015-2331
Key Facts
Patch immediately- CVE-2015-2331 is a high-severity vulnerability (CVSS 7.5 v2) affecting Libzip (Nih), PHP, Debian Linux and 22 more products.
- It is exploited in the wild, listed in Industry KEV feed since May 6, 2024. No public exploit code is known.
- EPSS estimates a 27% probability of exploitation in the next 30 days.
- Fixed versions are available, including apache2-mod_php5 5.6.28-1.1, apache2-mod_php7 7.0.14-1.4, Libzip 0.11.1-6.1.
- Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Scores
CVSS v2
7.5
AV:N/AC:L/Au:N/C:P/I:P/A:P
EPSS (30-day exploit likelihood)
27%
Higher than 98.0% of all scored CVEs
Exploit maturity
Exploited (KEV)
ATLAS score
53/100
Publication score, see How it works
Exploitation Verdict
KEV listed
May 6, 2024
3325 days after publication
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Exploited (KEV)
Public exploit code
0
Proof-of-concept links
In-the-wild evidence
2
Reports of active use
Advisories And Exploit References
- advisoryhttps://security-tracker.debian.org/tracker/CVE-2015-2331
- advisoryhttps://ubuntu.com/security/CVE-2015-2331
- advisoryhttps://www.cve.org/CVERecord?id=CVE-2015-2331
- advisoryhttp://hg.nih.at/libzip/rev/9f11d54f692e
- advisoryhttps://bugzilla.suse.com/923240
- advisoryhttps://www.suse.com/support/update/announcement/2015/suse-su-20150668-1/
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.
Known-Exploited Catalog Listings
| Catalog | Added | Remediation due | Ransomware use |
|---|---|---|---|
| Industry KEV feed | May 6, 2024 | n/a | Not reported |
Affected Products
286 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| LibzipNih | See advisory | 0.11.2 |
| PHPPHP | 5.5.0, 5.5.0-alpha1, 5.5.0-alpha2, 5.5.0-alpha3, 5.5.0-alpha4, 5.5.0-alpha5, 5.5.0-alpha6, 5.5.0-beta1 | 5.4.38 |
| Debian LinuxDebian | 7.0 | n/a |
| FedoraFedoraproject | 22 | n/a |
| OpensuseOpensuse | 13.1, 13.2 | n/a |
Patched Releases
apache2-mod_php5
5.6.28-1.1
apache2-mod_php7
7.0.14-1.4
Libzip
0.11.1-6.1, 0.11.2-1.2, 0.11.2
libzip-devel
0.11.1-6.1, 1.1.3-1.4
libzip-tools
1.1.3-1.4
libzip2
0.11.1-6.1
libzip4
1.1.3-1.4
libzip4-32bit
1.1.3-1.4
PHP
5.4.38
php5
5.3.3.1-7+squeeze26, 5.4.39-0+deb7u1, 5.6.28-1.1
php5-bcmath
5.6.28-1.1
php5-bz2
5.6.28-1.1
php5-calendar
5.6.28-1.1
php5-ctype
5.6.28-1.1
php5-curl
5.6.28-1.1
php5-dba
5.6.28-1.1
php5-devel
5.6.28-1.1
php5-dom
5.6.28-1.1
php5-enchant
5.6.28-1.1
php5-exif
5.6.28-1.1
php5-fastcgi
5.6.28-1.1
php5-fileinfo
5.6.28-1.1
php5-firebird
5.6.28-1.1
php5-fpm
5.6.28-1.1
php5-ftp
5.6.28-1.1
Timeline
Publicly disclosed
Mar 30, 2015
Added to Industry KEV feed
May 6, 2024
Last updated
Aug 4, 2026
Weakness Type
- CWE-189
- CWE-190 Integer Overflow or Wraparound
References
- advisorysecurity-tracker.debian.org · CVE-2015-2331
- advisoryubuntu.com · CVE-2015-2331
- advisorycve.org · CVERecord
- advisoryhg.nih.at · 9f11d54f692e
- advisorybugzilla.suse.com · 923240
FAQ
Common Questions.
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…
Affected: Libzip (Nih); PHP versions 5.5.0, 5.5.0-alpha1, 5.5.0-alpha2, 5.5.0-alpha3, 5.5.0-alpha4, 5.5.0-alpha5, 5.5.0-alpha6, 5.5.0-beta1; Debian Linux versions 7.0, among others. The full list is in the CVE brief.
It is exploited in the wild, listed in Industry KEV feed since May 6, 2024.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
No public exploit code is known.
Fixed versions are available, including apache2-mod_php5 5.6.28-1.1, apache2-mod_php7 7.0.14-1.4, Libzip 0.11.1-6.1.
Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Is CVE-2015-2331 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo