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

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

Affected products (1)

More vulnerabilities in Nih Libzip

All CVEs affecting Nih Libzip →

Other CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer) vulnerabilities

Browse all CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer) vulnerabilities →