---
title: "CVE-2015-2331\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2015-2331?format=md
keywords: index, follow
---

# CVE-2015-2331

Publication date 30 March 2015

Last updated 24 July 2024

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

Toggle side navigation

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

[Read the notes from the security team](https://ubuntu.com/security/CVE-2015-2331?format=md#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| libzip | 15.10 wily | Not affected |
| 15.04 vivid | Ignored end of life |
| 14.10 utopic | Ignored end of life |
| 14.04 LTS trusty | Not affected |
| 12.04 LTS precise | Not affected |
| 10.04 LTS lucid | Ignored end of life |
| php5 | 15.10 wily | Fixed 5.6.4+dfsg-4ubuntu4 |
| 15.04 vivid | Fixed 5.6.4+dfsg-4ubuntu4 |
| 14.10 utopic | Not affected |
| 14.04 LTS trusty | Not affected |
| 12.04 LTS precise | Not affected |
| 10.04 LTS lucid | Not affected |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2015-2331?format=md#patch-details)

## Notes

---

### [mdeslaur](https://launchpad.net/~mdeslaur)

libzip in trusty and earlier doesn't support ZIP64, so doesn't
look vulnerable.
php5 in utopic and earlier doesn't support ZIP64 either.

---

### [sbeattie](https://launchpad.net/~sbeattie)

fixed in libzip 1.0 release

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| libzip | * Upstream:   <http://hg.nih.at/libzip/rev/9f11d54f692e> |
| php5 | * Upstream:   <http://git.php.net/?p=php-src.git;a=commit;h=4a8d8b4154334b1714e19b82b061201d41dc87d6> |

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-2331)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2015-2331)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2015-2331)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2015-2331)

### Other references

* <http://www.openwall.com/lists/oss-security/2015/03/18/1>
* <https://www.cve.org/CVERecord?id=CVE-2015-2331>
