CVE-2012-1162
CVE-2012-1162 is a high-severity vulnerability in Nih Libzip with a CVSS 2.0 base score of 7.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-119.
Key facts
- Severity: High (CVSS 2.0 base score 7.5)
- EPSS exploit prediction: 4% (89th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-119
- Affected product: Nih Libzip
- Published:
- Last modified:
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."
Frequently asked questions
- What is CVE-2012-1162?
- 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."
- How severe is CVE-2012-1162?
- CVE-2012-1162 has a CVSS 2.0 base score of 7.5, rated high severity.
- Is CVE-2012-1162 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 4% (89th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2012-1162?
- CVE-2012-1162 affects Nih Libzip. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2012-1162?
- 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-2012-1162 published?
- CVE-2012-1162 was published on 2012-07-12 and last updated on 2026-06-16.
References
- http://nih.at/listarchive/libzip-discuss/msg00252.html
- http://www.gentoo.org/security/en/glsa/glsa-201203-23.xml
- http://www.mandriva.com/security/advisories?name=MDVSA-2012:034
- http://www.nih.at/libzip/NEWS.html
- http://www.openwall.com/lists/oss-security/2012/03/21/2
- http://www.openwall.com/lists/oss-security/2012/03/29/11
Affected products (1)
- cpe:2.3:a:nih:libzip:0.10:*:*:*:*:*:*:*
More vulnerabilities in Nih Libzip
- CVE-2015-2331 — High (CVSS 7.5): Integer overflow in the _zip_cdir_new function in zip_dirent.c in libzip 0.11.2 and earlier, as used in the ZIP…
- CVE-2012-1163 — Medium (CVSS 6.8): Integer overflow in the _zip_readcdir function in zip_open.c in libzip 0.10 allows remote attackers to execute…
All CVEs affecting Nih Libzip →
Other CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer) vulnerabilities
- CVE-2026-2778 — Critical (CVSS 10.0): Sandbox escape due to incorrect boundary conditions in the DOM: Core & HTML component. This vulnerability was fixed in…
- CVE-2026-2776 — Critical (CVSS 10.0): Sandbox escape due to incorrect boundary conditions in the Telemetry component in External Software. This vulnerability…
- CVE-2025-1866 — Critical (CVSS 10.0): Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in warmcat libwebsockets allows…
- CVE-2022-27625 — Critical (CVSS 10.0): A vulnerability regarding improper restriction of operations within the bounds of a memory buffer is found in the…
- CVE-2022-27624 — Critical (CVSS 10.0): A vulnerability regarding improper restriction of operations within the bounds of a memory buffer is found in the…
- CVE-2020-11896 — Critical (CVSS 10.0): The Treck TCP/IP stack before 6.0.1.66 allows Remote Code Execution, related to IPv4 tunneling.