---
title: "CVE-2012-1162\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-2012-1162?format=md
keywords: index, follow
---

# CVE-2012-1162

Publication date 12 July 2012

Last updated 24 July 2024

---

Ubuntu priority

**Medium**

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

Toggle side navigation

## Description

Heap-based buffer overflow in the \_zip\_readcdir function in zip\_open.c in
libzip 0.10 allows remote attackers to cause a denial of service
(application crash) and possibly execute arbitrary code via a zip archive
with the number of directories set to 0, related to an "incorrect loop
construct."

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

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| libzip | 11.10 oneiric | Not affected |
| 11.04 natty | Not affected |
| 10.10 maverick | Not affected |
| 10.04 LTS lucid | Not affected |
| 8.04 LTS hardy | Ignored end of life |

---

* [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-2012-1162?format=md#patch-details)

## Notes

---

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

only 0.10 affected
http://hg.nih.at/libzip/?cs=de747816d94c introduced the problem

### 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?cs=cb69d6146a09> |

## References

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

### Other references

* <http://nih.at/listarchive/libzip-discuss/msg00252.html>
* <https://www.cve.org/CVERecord?id=CVE-2012-1162>
