libzip: heap overflow flaw when processing malformed zip file
Published Jul 12, 2012
7.5
HIGHCVSS 2.0
EPSS 4.02%
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."
Affected products
No data.
No data.
Red Hat Enterprise Linux 5
php53
Not affected
Red Hat Enterprise Linux 6
libzip
Not affected
Red Hat Enterprise Linux 6
php
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | php53 | Not affected | n/a |
| Red Hat Enterprise Linux 6 | libzip | Not affected | n/a |
| Red Hat Enterprise Linux 6 | php | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
Not vulnerable. This issue did not affect the versions of libzip and php as shipped with Red Hat Enterprise Linux 6. This issue did not affect the versions of php53 as shipped with Red Hat Enterprise Linux 5.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:L/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (19 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 4.02% (0.04024) | 90.27th | v5 (v2026.06.15) |
| Jun 15, 2026 | 4.02% (0.04024) | 89.22th | v5 (v2026.06.15) |
| Mar 30, 2025 | 1.97% (0.01971) | 81.91th | v4 (v2025.03.14) |
| Mar 29, 2025 | 3.30% (0.03296) | 78.50th | v4 (v2025.03.14) |
| Mar 17, 2025 | 1.97% (0.01971) | 82.34th | v4 (v2025.03.14) |
| Mar 2, 2025 | 10.80% (0.10800) | 95.20th | v3 (v2023.03.01) |
| Jan 10, 2025 | 9.38% (0.09382) | 94.74th | v3 (v2023.03.01) |
| Dec 17, 2024 | 11.30% (0.11304) | 95.18th | v3 (v2023.03.01) |
| Sep 17, 2024 | 6.55% (0.06546) | 93.89th | v3 (v2023.03.01) |
| May 24, 2024 | 2.83% (0.02834) | 90.68th | v3 (v2023.03.01) |
| May 10, 2024 | 1.82% (0.01816) | 88.12th | v3 (v2023.03.01) |
| Apr 25, 2024 | 1.49% (0.01486) | 86.63th | v3 (v2023.03.01) |
| Mar 15, 2024 | 1.47% (0.01468) | 86.41th | v3 (v2023.03.01) |
| Feb 8, 2024 | 1.41% (0.01410) | 86.04th | v3 (v2023.03.01) |
| Dec 8, 2023 | 6.62% (0.06617) | 93.05th | v3 (v2023.03.01) |
| Mar 7, 2023 | 6.89% (0.06895) | 92.79th | v3 (v2023.03.01) |
| Mar 6, 2023 | 5.14% (0.05139) | 89.65th | v2 (v2022.01.01) |
| Apr 1, 2022 | 5.14% (0.05139) | 88.62th | v2 (v2022.01.01) |
| Feb 4, 2022 | 5.14% (0.05139) | 75.16th | v2 (v2022.01.01) |
References (10)
- http://nih.at/listarchive/libzip-discuss/msg00252.html mailing-listx_refsource_MLISTExploit
- http://www.gentoo.org/security/en/glsa/glsa-201203-23.xml vendor-advisoryx_refsource_GENTOO
- http://www.mandriva.com/security/advisories?name=MDVSA-2012:034 vendor-advisoryx_refsource_MANDRIVA
- http://www.nih.at/libzip/NEWS.html x_refsource_CONFIRM
- http://www.openwall.com/lists/oss-security/2012/03/21/2 mailing-listx_refsource_MLISTExploit
- http://www.openwall.com/lists/oss-security/2012/03/29/11 mailing-listx_refsource_MLIST
- https://access.redhat.com/security/cve/CVE-2012-1162 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=802564 Issue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2012-1162
- https://www.cve.org/CVERecord?id=CVE-2012-1162
| Link | Providers | Tags |
|---|---|---|
| http://nih.at/listarchive/libzip-discuss/msg00252.html | mailing-listx_refsource_MLISTExploit | |
| http://www.gentoo.org/security/en/glsa/glsa-201203-23.xml | vendor-advisoryx_refsource_GENTOO | |
| http://www.mandriva.com/security/advisories?name=MDVSA-2012:034 | vendor-advisoryx_refsource_MANDRIVA | |
| http://www.nih.at/libzip/NEWS.html | x_refsource_CONFIRM | |
| http://www.openwall.com/lists/oss-security/2012/03/21/2 | mailing-listx_refsource_MLISTExploit | |
| http://www.openwall.com/lists/oss-security/2012/03/29/11 | mailing-listx_refsource_MLIST | |
| https://access.redhat.com/security/cve/CVE-2012-1162 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=802564 | Issue Tracking | |
| https://nvd.nist.gov/vuln/detail/CVE-2012-1162 | ||
| https://www.cve.org/CVERecord?id=CVE-2012-1162 |
Change history (0)
No recorded changes yet.