Skip to content
On CISA KEVHigh

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

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

CatalogAddedRemediation dueRansomware use
Industry KEV feedMay 6, 2024n/aNot reported

Affected Products

286 affected entries in total
ProductAffected versionsFixed in
LibzipNihSee advisory0.11.2
PHPPHP5.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-beta15.4.38
Debian LinuxDebian7.0n/a
FedoraFedoraproject22n/a
OpensuseOpensuse13.1, 13.2n/a
20 more affected products in the full CVE brief

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

  1. Publicly disclosed

    Mar 30, 2015

  2. Added to Industry KEV feed

    May 6, 2024

  3. Last updated

    Aug 4, 2026

Weakness Type

  • CWE-189
  • CWE-190 Integer Overflow or Wraparound

References

15 more references in the full CVE brief

FAQ

Common Questions.

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

More vulnerabilities

Figures as of Oct 23, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.