Heap-based buffer overflow in libzip - CVE-2012-1162

 

Heap-based buffer overflow in libzip - CVE-2012-1162

Published: July 12, 2012 / Updated: February 21, 2021


Vulnerability identifier: #VU43886
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2012-1162
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error in Heap-based buffer overflow in the _zip_readcdir function in zip_open.c in libzip 0.10. A remote attacker can use a zip archive with the number of directories set to 0 to trigger heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

libzip
Gentoo Linux

How to mitigate CVE-2012-1162

Install update from vendor's website.


External References

Related Security Bulletins