CVE-2015-2331

CVE-2015-2331 is a high-severity vulnerability in Nih Libzip with a CVSS 2.0 base score of 7.5. Its EPSS exploit-prediction score of 28% places it in the 98th percentile, indicating an elevated likelihood of exploitation. The underlying weakness is classified as CWE-189.

Key facts

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.

Frequently asked questions

What is CVE-2015-2331?
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.
How severe is CVE-2015-2331?
CVE-2015-2331 has a CVSS 2.0 base score of 7.5, rated high severity.
Is CVE-2015-2331 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 28% (98th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2015-2331?
CVE-2015-2331 primarily affects Nih Libzip. In total, 56 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
How do I fix CVE-2015-2331?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
When was CVE-2015-2331 published?
CVE-2015-2331 was published on 2015-03-30 and last updated on 2026-06-17.

References

Affected products (56)

More vulnerabilities in Nih Libzip

All CVEs affecting Nih Libzip →

Other CWE-189 (Numeric Errors) vulnerabilities

Browse all CWE-189 (Numeric Errors) vulnerabilities →

Threat intelligence

Threat-intel indicators referencing this CVE: