Skip to content
Fencer Intel
high 7.5

CVE-2012-1162 json

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…

published 2012-07-12 14 y ago modified 2026-06-16 4 mo ago also EUVD-2012-1192

cvss
7.5
version 2.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
4.0%
EPSS 4.0% chance of exploitation in 30 days, percentile 90%
public exploits
0
none known

Summary

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

Patch / fix

  • libzip Debian 14, Debian 13, Debian 12 0.10.1-1

debian advisories DEBIAN-CVE-2012-1162

  • libzip openSUSE Tumbleweed 1.1.3-1.4

opensuse advisories openSUSE-SU-2024:10113-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2012-1162 updated cvss 4.4

libzip: heap overflow flaw when processing malformed zip file

  • Red Hat Enterprise Linux 5 php53 Red Hat Enterprise Linux 6 php, libzip, php-gd, php-cli, php-dba, php-fpm, +21 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

4.03% chance of exploitation in the next 30 days, higher than 90% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • nih.at http://nih.at/listarchive/libzip-discuss/msg00252.html referenced PoC, tagged "exploit" by a source, unverified
  • openwall.com http://www.openwall.com/lists/oss-security/2012/03/21/2 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 2.0 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

Weakness
  • CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.