CVE-2016-4300 json
Integer overflow in the read_SubStreamsInfo function in archive_read_support_format_7zip.c in libarchive before 3.2.1 allows remote attacke…
published 2016-09-21 10 y ago modified 2026-06-17 4 mo ago also EUVD-2016-5300
- cvss
- 7.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.9%
- EPSS 4.9% chance of exploitation in 30 days, percentile 92%
- public exploits
- 0
- none known
Summary
Integer overflow in the read_SubStreamsInfo function in archive_read_support_format_7zip.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a 7zip file with a large number of substreams, which triggers a heap-based buffer overflow.
Patch / fix
- libarchive Debian 14, Debian 13, Debian 12 3.2.1-1
debian advisories DEBIAN-CVE-2016-4300
- libarchive Ubuntu 14.04 LTS 3.1.2-7ubuntu2.3
- libarchive Ubuntu 16.04 LTS 3.1.2-11ubuntu0.16.04.2
ubuntu advisories UBUNTU-CVE-2016-4300
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- libarchive RHEL 7 3.1.2-10.el7_2
- bsdtar RHEL 7 3.1.2-10.el7_2
- bsdcpio RHEL 7 3.1.2-10.el7_2
red hat advisories RHSA-2016:1844
- libarchive SLES for SAP 12 SP1, SLES 12 SP1, SLED 12 SP1 +1 more 3.1.2-22.1
suse advisories SUSE-SU-2016:1909-1
- bsdtar openSUSE Tumbleweed 3.2.2-2.1
opensuse advisories openSUSE-SU-2024:10127-1
- libarchive Alpine 3.4 3.2.1-r0
alpine advisories ALPINE-CVE-2016-4300
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
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-2016-4300 updated cvss 8.4
libarchive: Heap buffer overflow vulnerability in the 7zip read_SubStreamsInfo
-
Red Hat Enterprise Linux Client (v. 7) libarchive 3.1.2-10.el7_2 Red Hat Enterprise Linux Client Optional (v. 7) bsdtar 3.1.2-10.el7_2, bsdcpio 3.1.2-10.el7_2 Red Hat Enterprise Linux ComputeNode (v. 7) libarchive 3.1.2-10.el7_2 Red Hat Enterprise Linux ComputeNode Optional (v. 7) bsdtar 3.1.2-10.el7_2, bsdcpio 3.1.2-10.el7_2 Red Hat Enterprise Linux Server (v. 7) libarchive 3.1.2-10.el7_2 Red Hat Enterprise Linux Server Optional (v. 7) bsdtar 3.1.2-10.el7_2, bsdcpio 3.1.2-10.el7_2fixed: vendor fix RHSA-2016:1844
+2 more productsfewer
Red Hat Enterprise Linux Workstation (v. 7) libarchive 3.1.2-10.el7_2 Red Hat Enterprise Linux Workstation Optional (v. 7) bsdtar 3.1.2-10.el7_2, bsdcpio 3.1.2-10.el7_2 -
Red Hat Enterprise Linux 6 libarchivenot 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.92% chance of exploitation in the next 30 days, higher than 92% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- blog.talosintel.com http://blog.talosintel.com/2016/06/the-poisoned-archives.html referenced PoC, tagged "exploit" by a source, unverified
- talosintel.com http://www.talosintel.com/reports/TALOS-2016-0152/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 7.8 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-190 Integer Overflow or Wraparound
References
-
github.com
/libarchive/libarchive/commit/e79ef306afe332faf22e9b442a2c6b59cb175573
issue-tracking, patch, third-party-advisory
-
github.com
/libarchive/libarchive/issues/718
issue-tracking, patch, third-party-advisory
-
blog.talosintel.com
/2016/06/the-poisoned-archives.html
exploit, third-party-advisory
-
talosintel.com
/reports/TALOS-2016-0152/
exploit, third-party-advisory
-
rhn.redhat.com
/errata/RHSA-2016-1844.html
vendor-advisory, third-party-advisory
-
security.gentoo.org
/glsa/201701-03
vendor-advisory
-
debian.org
/security/2016/dsa-3657
vendor-advisory
- oracle.com /technetwork/topics/security/linuxbulletinjul2016-3090544.html
-
securityfocus.com
/bid/91326
vdb-entry, third-party-advisory
- oracle.com /technetwork/topics/security/bulletinjul2016-3090568.html
- security-center.intel.com /advisory.aspx?intelid=INTEL-SA-00062&languageid=en-fr
-
bugzilla.redhat.com
/show_bug.cgi?id=1348439
issue-tracking
Sources
- CVE List CVE-2016-4300
- NVD CVE-2016-4300
Fencer Vulns 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.