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…
Noroxi assessment
Priority: Monitor (action score 38/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 27.3% (FIRST EPSS); higher than 98% of all records.
- No special conditions are required; it is repeatable.
- Fixed version: libzip (Debian:12) 0.11.2-1.2; php5 (Debian:6.0) 5.3.3.1-7+squeeze26; php5 (Debian:7) 5.4.39-0+deb7u1.
Low priority for now. Upgrade to libzip (Debian:12) 0.11.2-1.2; php5 (Debian:6.0) 5.3.3.1-7+squeeze26; php5 (Debian:7) 5.4.39-0+deb7u1 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Mar 30, 2015
- Updated
- Jun 16, 2026
- EPSS
- 27.3% · 98th percentile
- CWE
- CWE-189
Report tools
Action score
38
Low priority for now.
- CVSS
- 30 / 40 · 7.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 8 / 30 · 27.3%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| php | php | cpe:2.3:a:php:php |
| nih | libzip | cpe:2.3:a:nih:libzip |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
| opensuse | opensuse | cpe:2.3:o:opensuse:opensuse |
Using php? Add it to your stack and be the first to know about CVEs like this one. (PHP)
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- php phpup to 5.4.38 inclusive
- php php5.5.0
- php php5.5.1
- php php5.5.10
- php php5.5.11
- php php5.5.12
- php php5.5.13
- php php5.5.14
+12 more rows
- php php5.5.15
- php php5.5.16
- php php5.5.17
- php php5.5.18
- php php5.5.19
- php php5.5.2
- php php5.5.20
- php php5.5.21
- php php5.5.22
- php php5.5.3
- php php5.5.4
- php php5.5.5
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | libzip | before 0.11.2-1.2 | 0.11.2-1.2 |
| Debian:6.0 | php5 | before 5.3.3.1-7+squeeze26 | 5.3.3.1-7+squeeze26 |
| Debian:7 | php5 | before 5.4.39-0+deb7u1 | 5.4.39-0+deb7u1 |
| openSUSE:Tumbleweed | libzip | before 1.1.3-1.4 | 1.1.3-1.4 |
| SUSE:Linux Enterprise Desktop 12 | libzip | before 0.11.1-6.1 | 0.11.1-6.1 |
Same product
php: all recordsOther highest-scoring records for the same primary product.
- CVE-2024-4577Argument Injection in PHP-CGIKEV99Now
- CVE-2019-11043Underflow in PHP-FPM can lead to RCEKEV99Now
- CVE-2012-1823sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not properly handle…KEV99Now
Published before and after this one in the same product
- ← EarlierCVE-2015-1352Mar 30, 2015 · The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate token extraction for…22Monitor
- ← EarlierCVE-2015-2301Mar 30, 2015 · Use-after-free vulnerability in the phar_rename_archive function in phar_object.c in PHP before 5.5.22 and 5.6.x before 5.6.6 allows remote…34Monitor
- Later →CVE-2015-2348Mar 30, 2015 · The move_uploaded_file implementation in ext/standard/basic_functions.c in PHP before 5.4.39, 5.5.x before 5.5.23, and 5.6.x before 5.6.7…22Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:libzip | 0.11.2-1.2 · Debian:12 | Package registry (OSV) |
| debian:php5 | 5.3.3.1-7+squeeze26 · Debian:6.0 | Package registry (OSV) |
| opensuse:libzip | 1.1.3-1.4 · openSUSE:Tumbleweed | Package registry (OSV) |
| suse:libzip | 0.11.1-6.1 · SUSE:Linux Enterprise Desktop 12 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Not on record for this CVE: EPSS history · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- P · data can be read
- Integrity
- P · data or configuration can be modified
- Availability
- P · the service can be disrupted
- Attack complexity
- Low
- Confidentiality impact
- P
- Integrity impact
- P
- Availability impact
- P
Weakness class (CWE)
CWE-189 · Numeric ErrorsCVSS vector
AV:N/AC:L/Au:N/C:P/I:P/A:P
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (19 more)Show less
- hg.nih.at/libzip/rev/9f11d54f692e
- lists.apple.com/archives/security-announce/2015/Sep/msg00008.html
- lists.fedoraproject.org/pipermail/package-announce/2015-April/154266.html
- lists.fedoraproject.org/pipermail/package-announce/2015-April/154276.html
- lists.fedoraproject.org/pipermail/package-announce/2015-April/154666.html
- lists.fedoraproject.org/pipermail/package-announce/2015-April/155299.html
- lists.fedoraproject.org/pipermail/package-announce/2015-April/155622.html
- lists.fedoraproject.org/pipermail/package-announce/2015-March/153983.html
- lists.opensuse.org/opensuse-updates/2015-03/msg00083.html
- lists.opensuse.org/opensuse-updates/2015-04/msg00002.html
- marc.info/?l=bugtraq&m=143403519711434&w=2
- marc.info/?l=bugtraq&m=143748090628601&w=2
- marc.info/?l=bugtraq&m=144050155601375&w=2
- php.net/ChangeLog-5.php
- www.debian.org/security/2015/dsa-3198
- www.mandriva.com/security/advisories?name=MDVSA-2015:079
- www.oracle.com/technetwork/topics/security/bulletinjul2015-2511963.html
- www.securitytracker.com/id/1031985
- support.apple.com/HT205267
Vendor advisories and official records. Exploit/PoC links are deliberately left out.