CVE-2014-8140
published 2020-01-31CVE-2014-8140: Heap-based buffer overflow in the test_compr_eb function in Info-ZIP UnZip 6.0 and earlier allows remote attackers to execute arbitrary code via a crafted zip…
PriorityP344high7.8CVSS 3.1
AVLACLPRNUIRSUCHIHAH
EPSS
7.45%
93.8th percentile
Heap-based buffer overflow in the test_compr_eb function in Info-ZIP UnZip 6.0 and earlier allows remote attackers to execute arbitrary code via a crafted zip file in the -t command argument to the unzip command.
Affected
49 ranges· showing 25
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| apple | os_x_yosemite_v10.10.4_and_security_update_2015-005 | — | — |
| debian | unzip | < unzip 6.0-13 (bookworm) | unzip 6.0-13 (bookworm) |
| info-zip | unzip | — | — |
| msrc | azl3_unzip_6.0-20_on_azure_linux_3.0 | — | — |
| msrc | azl3_unzip_6.0-22_on_azure_linux_3.0 | — | — |
| msrc | cbl2_unzip_6.0-19_on_cbl_mariner_2.0 | — | — |
| msrc | cbl_mariner_1.0_arm | — | — |
| msrc | cbl_mariner_1.0_x64 | — | — |
| msrc | cbl_mariner_2.0_arm | — | — |
| msrc | cbl_mariner_2.0_x64 | — | — |
| msrc | cm1_unzip_6.0-16_on_cbl_mariner_1.0 | — | — |
| msrc | unzip-6.0-16.cm1.aarch64.rpm_on_cbl_mariner_1.0_arm | — | — |
| msrc | unzip-6.0-16.cm1.x86_64.rpm_on_cbl_mariner_1.0_x64 | — | — |
| msrc | unzip-6.0-19.cm2.aarch64.rpm_on_cbl_mariner_2.0_arm | — | — |
| msrc | unzip-6.0-19.cm2.x86_64.rpm_on_cbl_mariner_2.0_x64 | — | — |
| msrc | unzip-6.0-20.azl3.aarch64.rpm_on_azure_linux_3.0_arm | — | — |
| msrc | unzip-6.0-20.azl3.x86_64.rpm_on_azure_linux_3.0_x64 | — | — |
| msrc | unzip-debuginfo-6.0-16.cm1.aarch64.rpm_on_cbl_mariner_1.0_arm | — | — |
| msrc | unzip-debuginfo-6.0-16.cm1.x86_64.rpm_on_cbl_mariner_1.0_x64 | — | — |
| msrc | unzip-debuginfo-6.0-19.cm2.aarch64.rpm_on_cbl_mariner_2.0_arm | — | — |
| msrc | unzip-debuginfo-6.0-19.cm2.x86_64.rpm_on_cbl_mariner_2.0_x64 | — | — |
| redhat | enterprise_linux_desktop | — | — |
| redhat | enterprise_linux_desktop | — | — |
| redhat | enterprise_linux_server | — | — |
| redhat | enterprise_linux_server | — | — |
CVSS provenance
nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
osv7.8HIGH
vendor_debian7.8HIGH
vendor_msrc7.8HIGH
vendor_redhat7.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-x95w-6xxq-wrf2: Archive::Unzip::Burst from 0
ghsa_unreviewed·2025-06-12·CVSS 7.8
CVE-2022-4976 [HIGH] GHSA-x95w-6xxq-wrf2: Archive::Unzip::Burst from 0
Archive::Unzip::Burst from 0.01 through 0.09 for Perl contains a bundled InfoZip library that is affected by several vulnerabilities.
The bundled library is affected by CVE-2014-8139, CVE-2014-8140 and CVE-2014-8141.
GHSA
GHSA-fhf3-rjhh-4c23: Heap-based buffer overflow in the test_compr_eb function in Info-ZIP UnZip 6
ghsa_unreviewed·2022-05-17
CVE-2014-8140 [MEDIUM] CWE-787 GHSA-fhf3-rjhh-4c23: Heap-based buffer overflow in the test_compr_eb function in Info-ZIP UnZip 6
Heap-based buffer overflow in the test_compr_eb function in Info-ZIP UnZip 6.0 and earlier allows remote attackers to execute arbitrary code via a crafted zip file in the -t command argument to the unzip command.
OSV
CVE-2014-8140: Heap-based buffer overflow in the test_compr_eb function in Info-ZIP UnZip 6
osv·2020-01-31·CVSS 7.8
CVE-2014-8140 [HIGH] CVE-2014-8140: Heap-based buffer overflow in the test_compr_eb function in Info-ZIP UnZip 6
Heap-based buffer overflow in the test_compr_eb function in Info-ZIP UnZip 6.0 and earlier allows remote attackers to execute arbitrary code via a crafted zip file in the -t command argument to the unzip command.
Microsoft
Heap-based buffer overflow in the test_compr_eb function in Info-ZIP UnZip 6.0 and earlier allows remote attackers to execute arbitrary code via a crafted zip file in the -t command argument to the un
vendor_msrc·2020-01-14·CVSS 7.8
CVE-2014-8140 [HIGH] CWE-787 Heap-based buffer overflow in the test_compr_eb function in Info-ZIP UnZip 6.0 and earlier allows remote attackers to execute arbitrary code via a crafted zip file in the -t command argument to the un
Heap-based buffer overflow in the test_compr_eb function in Info-ZIP UnZip 6.0 and earlier allows remote attackers to execute arbitrary code via a crafted zip file in the -t command argument to the unzip command.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we wil
Ubuntu
unzip vulnerabilities
vendor_ubuntu·2015-01-14
CVE-2014-8139 unzip vulnerabilities
Title: unzip vulnerabilities
Summary: unzip could be made to crash or run programs if it opened a specially
crafted file.
Wolfgang Ettlinger discovered that unzip incorrectly handled certain
malformed zip archives. If a user or automated system were tricked into
processing a specially crafted zip archive, an attacker could possibly
execute arbitrary code.
Instructions: In general, a standard system update will make all the necessary changes.
Red Hat
unzip: out-of-bounds write issue in test_compr_eb() (oCERT-2014-011)
vendor_redhat·2014-12-22·CVSS 7.8
CVE-2014-8140 [HIGH] CWE-20 unzip: out-of-bounds write issue in test_compr_eb() (oCERT-2014-011)
unzip: out-of-bounds write issue in test_compr_eb() (oCERT-2014-011)
Heap-based buffer overflow in the test_compr_eb function in Info-ZIP UnZip 6.0 and earlier allows remote attackers to execute arbitrary code via a crafted zip file in the -t command argument to the unzip command.
An integer underflow flaw, leading to a buffer overflow, was found in the way unzip uncompressed certain extra fields of a file. A specially crafted Zip archive could cause unzip to crash when the archive was tested with unzip's '-t' option.
Statement: Red Hat Enterprise Linux 5 is now in Production 3 Phase of the support and maintenance life cycle. This has been rated as having Low security impact and is not currently planned to be addressed in future updates in Red Hat Enterprise Linux 5. For additional info
Debian
CVE-2014-8140: unzip - Heap-based buffer overflow in the test_compr_eb function in Info-ZIP UnZip 6.0 a...
vendor_debian·2014·CVSS 7.8
CVE-2014-8140 [HIGH] CVE-2014-8140: unzip - Heap-based buffer overflow in the test_compr_eb function in Info-ZIP UnZip 6.0 a...
Heap-based buffer overflow in the test_compr_eb function in Info-ZIP UnZip 6.0 and earlier allows remote attackers to execute arbitrary code via a crafted zip file in the -t command argument to the unzip command.
Scope: local
bookworm: resolved (fixed in 6.0-13)
bullseye: resolved (fixed in 6.0-13)
forky: resolved (fixed in 6.0-13)
sid: resolved (fixed in 6.0-13)
trixie: resolved (fixed in 6.0-13)
Apple
CVE-2014-8140: OS X Yosemite v10.10.4 and Security Update 2015-005
vendor_apple·CVSS 7.8
CVE-2014-8140 [HIGH] CVE-2014-8140: OS X Yosemite v10.10.4 and Security Update 2015-005
Apple Security Update: About the security content of OS X Yosemite v10.10.4 and Security Update 2015-005
Product: OS X Yosemite v10.10.4 and Security Update 2015-005
CVE: CVE-2014-8140
Component: CVE-2014-8140
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2014-8139 CVE-2014-8141 CVE-2014-8140 unzip: various flaws [fedora-all]
bugzilla·2015-02-10·CVSS 7.8
CVE-2014-8139 [HIGH] CVE-2014-8139 CVE-2014-8141 CVE-2014-8140 unzip: various flaws [fedora-all]
CVE-2014-8139 CVE-2014-8141 CVE-2014-8140 unzip: various flaws [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versions of Fe
Bugzilla
CVE-2014-9636 unzip: out-of-bounds read/write in test_compr_eb() in extract.c
bugzilla·2015-01-22·CVSS 7.8
CVE-2014-9636 [HIGH] CVE-2014-9636 unzip: out-of-bounds read/write in test_compr_eb() in extract.c
CVE-2014-9636 unzip: out-of-bounds read/write in test_compr_eb() in extract.c
It was reported [1] that OOB access (both read and write) issues exist in test_compr_eb (extract.c) that can result in application crash or other unspecified impact.
This vulnerability can be triggered via crafted zip archives with extra fields that advertise STORED method compression (i.e. no compression) and have uncompressed field sizes smaller than the corresponding compressed field sizes.
This issue is different from CVE-2014-8140 [2].
Proposed patch is attached.
Upstream bugreport: http://www.info-zip.org/phpBB3/viewtopic.php?f=7&t=450
[1]: http://seclists.org/oss-sec/2014/q4/1131
[2]: https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2014-8140
Discussion:
Created attachment 982909
unzip-6.0_overflow2.
Bugzilla
CVE-2014-8140 unzip: out-of-bounds write issue in test_compr_eb() (oCERT-2014-011)
bugzilla·2014-12-16·CVSS 7.8
CVE-2014-8140 [HIGH] CVE-2014-8140 unzip: out-of-bounds write issue in test_compr_eb() (oCERT-2014-011)
CVE-2014-8140 unzip: out-of-bounds write issue in test_compr_eb() (oCERT-2014-011)
oCERT reports an unzip flaw discovered by Michele Spagnuolo, Google Security Team:
"""
The write error shows a problem in extract.c:test_compr_eb(), which was not expecting an uncompressed size of zero for an EF_NTSD extra block.
Proposed changes:
http://antinode.info/ftp/info-zip/unzip60/extract.c
extract.c:test_compr_eb() gets a new validity test.
"""
Acknowledgement:
Red Hat would like to thank oCERT for reporting these issues. oCERT acknowledges Michele Spagnuolo of the Google Security Team as the original reporter.
Discussion:
Created attachment 969621
Upstream patch
This seems to be the upstream fix mentioned in the comment 0.
---
External Reference:
http://www.ocert.org/advisories/ocert-2
http://www.ocert.org/advisories/ocert-2014-011.htmlhttp://www.securitytracker.com/id/1031433https://access.redhat.com/errata/RHSA-2015:0700https://bugzilla.redhat.com/show_bug.cgi?id=1174851http://www.ocert.org/advisories/ocert-2014-011.htmlhttp://www.securitytracker.com/id/1031433https://access.redhat.com/errata/RHSA-2015:0700https://bugzilla.redhat.com/show_bug.cgi?id=1174851
2020-01-31
Published