CVE-2016-8687
Stack-based buffer overflow in the safe_fprintf function in tar/util.c in libarchive 3.2.1 allows...
Stack-based buffer overflow in the safe_fprintf function in tar/util.c in libarchive 3.2.1 allows remote attackers to cause a denial of service via a crafted non-printable multibyte character in a filename.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.5
Stack-based buffer overflow in the safe_fprintf function in tar/util.c in libarchive 3.2.1 allows remote attackers to cause a denial of service via a crafted non-printable multibyte character in a filename.
- Record
CVE-2016-8687- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:N/A:P - Weakness
- CWE-119
- Updated
- 2026-11-02
CVE List No score
Stack-based buffer overflow in the safe_fprintf function in tar/util.c in libarchive 3.2.1 allows remote attackers to cause a denial of service via a crafted non-printable multibyte character in a filename.
- Record
CVE-2016-8687- Updated
- 2026-11-02
EUVDEUVD-2016-9526 No score
Stack-based buffer overflow in the safe_fprintf function in tar/util.c in libarchive 3.2.1 allows remote attackers to cause a denial of service via a crafted non-printable multibyte character in a filename.
- Record
EUVD-2016-9526- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-c42q-jv3x-rq38
7.5
Stack-based buffer overflow in the safe_fprintf function in tar/util.c in libarchive 3.2.1 allows...
Stack-based buffer overflow in the safe_fprintf function in tar/util.c in libarchive 3.2.1 allows remote attackers to cause a denial of service via a crafted non-printable multibyte character in a filename.
- Record
GHSA-c42q-jv3x-rq38- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-119
- Updated
- 2026-11-02
OSV
7.5
Stack-based buffer overflow in the safe_fprintf function in tar/util.c in libarchive 3.2.1 allows remote attackers to cause a denial of service via a crafted non-printable multibyte character in a filename.
- Record
CVE-2016-8687- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2016-8687
7.5
Stack-based buffer overflow in the safe_fprintf function in tar/util.c in libarchive 3.2.1 allows remote attackers to cause a denial of service via a crafted non-printable multibyte character in a filename.
- Record
DEBIAN-CVE-2016-8687- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 4 moreShow less
OSVUBUNTU-CVE-2016-8687
7.5
Stack-based buffer overflow in the safe_fprintf function in tar/util.c in libarchive 3.2.1 allows remote attackers to cause a denial of service via a crafted non-printable multibyte character in a filename.
- Record
UBUNTU-CVE-2016-8687- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10127-1 No score
bsdtar-3.2.2-2.1 on GA media
These are all security issues fixed in the bsdtar-3.2.2-2.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10127-1- Updated
- 2026-11-02
OSVSUSE-SU-2016:2911-1 No score
Security update for libarchive
This update for libarchive fixes several issues.
These security issues were fixed:
- CVE-2016-8687: Buffer overflow when printing a filename (bsc#1005070).
- CVE-2016-8689: Heap overflow when reading corrupted 7Zip files (bsc#1005072).
- CVE-2016-8688: Use after free because of incorrect calculation in next_line (bsc#1005076).
- CVE-2016-5844: Integer overflow in the ISO parser in libarchive allowed remote attackers to cause a denial of service (application crash) via a crafted ISO file (bsc#986566).
- CVE-2016-6250: Integer overflow in the ISO9660 writer in libarchive allowed remote attackers to cause a denial of service (application crash) or execute arbitrary code via vectors related to verifying filename lengths when writing an ISO9660 archive, which trigger a buffer overflow (bsc#989980).
- CVE-2016-5418: The sandboxing code in libarchive mishandled hardlink archive entries of non-zero data size, which might allowed remote attackers to write to arbitrary files via a crafted archive file (bsc#998677).
- Record
SUSE-SU-2016:2911-1- Updated
- 2026-11-02
OSVUSN-3225-1 No score
libarchive vulnerabilities
It was discovered that libarchive incorrectly handled hardlink entries when extracting archives. A remote attacker could possibly use this issue to overwrite arbitrary files. (CVE-2016-5418)
Christian Wressnegger, Alwin Maier, and Fabian Yamaguchi discovered that libarchive incorrectly handled filename lengths when writing ISO9660 archives. A remote attacker could use this issue to cause libarchive to crash, resulting in a denial of service, or possibly execute arbitrary code. This issue only applied to Ubuntu 12.04 LTS, Ubuntu 14.04 LTS and Ubuntu 16.04 LTS. (CVE-2016-6250)
Alexander Cherepanov discovered that libarchive incorrectly handled recursive decompressions. A remote attacker could possibly use this issue to cause libarchive to hang, resulting in a denial of service. This issue only applied to Ubuntu 12.04 LTS, Ubuntu 14.04 LTS and Ubuntu 16.04 LTS. (CVE-2016-7166)
It was discovered that libarchive incorrectly handled non-printable multibyte characters in filenames. A remote attacker could possibly use this issue to cause libarchive to crash, resulting in a denial of service. (CVE-2016-8687)
It was discovered that libarchive incorrectly handled line sizes when extracting certain archives. A remote attacker could possibly use this issue to cause libarchive to crash, resulting in a denial of service. (CVE-2016-8688)
It was discovered that libarchive incorrectly handled multiple EmptyStream attributes when extracting certain 7zip archives. A remote attacker could possibly use this issue to cause libarchive to crash, resulting in a denial of service. (CVE-2016-8689)
Jakub Jirasek discovered that libarchive incorrectly handled memory when extracting certain archives. A remote attacker could possibly use this issue to cause libarchive to crash, resulting in a denial of service. (CVE-2017-5601)
- Record
USN-3225-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
libarchiveDebian:12 |
before 3.2.1-5 | 3.2.1-5 |
libarchiveDebian:13 |
before 3.2.1-5 | 3.2.1-5 |
libarchiveDebian:14 |
before 3.2.1-5 | 3.2.1-5 |
libarchiveDebian:8 |
before 3.1.2-11+deb8u4, plus listed versions 3.1.2-113.1.2-11+deb8u13.1.2-11+deb8u23.1.2-11+deb8u33.1.2-11+deb8u3~bpo70+1 |
3.1.2-11+deb8u4 |
libarchiveDebian:7 |
before 3.0.4-3+wheezy5, plus listed versions 3.0.4-3+nmu13.0.4-3+wheezy13.0.4-3+wheezy23.0.4-3+wheezy33.0.4-3+wheezy4 |
3.0.4-3+wheezy5 |
libarchiveSUSE:Linux Enterprise Desktop 12 SP1 |
before 3.1.2-25.1 | 3.1.2-25.1 |
libarchiveSUSE:Linux Enterprise Desktop 12 SP2 |
before 3.1.2-25.1 | 3.1.2-25.1 |
libarchiveSUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 |
before 3.1.2-25.1 | 3.1.2-25.1 |
libarchiveSUSE:Linux Enterprise Software Development Kit 12 SP1 |
before 3.1.2-25.1 | 3.1.2-25.1 |
libarchiveSUSE:Linux Enterprise Software Development Kit 12 SP2 |
before 3.1.2-25.1 | 3.1.2-25.1 |
Show 7 moreShow less
| Package | Affected | Fixed |
|---|---|---|
libarchiveSUSE:Linux Enterprise Server 12 SP1 |
before 3.1.2-25.1 | 3.1.2-25.1 |
libarchiveSUSE:Linux Enterprise Server for SAP Applications 12 SP1 |
before 3.1.2-25.1 | 3.1.2-25.1 |
libarchiveSUSE:Linux Enterprise Server 12 SP2 |
before 3.1.2-25.1 | 3.1.2-25.1 |
libarchiveSUSE:Linux Enterprise Server for SAP Applications 12 SP2 |
before 3.1.2-25.1 | 3.1.2-25.1 |
libarchiveUbuntu:14.04:LTS |
before 3.1.2-7ubuntu2.4, plus listed versions 3.1.2-5ubuntu13.1.2-7ubuntu13.1.2-7ubuntu23.1.2-7ubuntu2.13.1.2-7ubuntu2.23.1.2-7ubuntu2.3 |
3.1.2-7ubuntu2.4 |
libarchiveUbuntu:16.04:LTS |
before 3.1.2-11ubuntu0.16.04.3, plus listed versions 3.1.2-11build13.1.2-11ubuntu0.16.04.13.1.2-11ubuntu0.16.04.2 |
3.1.2-11ubuntu0.16.04.3 |
bsdtaropenSUSE:Tumbleweed |
before 3.2.2-2.1 | 3.2.2-2.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2016-8687 is a high vulnerability (CVSS 7.5) in Libarchive, published October 17, 2016. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 5.26%, the 92nd percentile. Fixed in libarchive 3.2.1-5.
References
openwall.com/lists/oss-security/2016/10/16/11
lists.debian.org/debian-lts-announce/2018/11/msg00037.html
security.gentoo.org/glsa/201701-03
securityfocus.com/bid/93781
blogs.gentoo.org/ago/2016/09/11/libarchive-bsdtar-stack-based-buffer-overflow-in-bsdtar_expand_char-util-c
bugzilla.redhat.com/show_bug.cgi?id=1377926
Show 38 moreShow less
lists.opensuse.org/opensuse-updates/2016-12/msg00027.html
securitytracker.com/id/1037668
github.com/libarchive/libarchive/commit/e37b620fe8f14535d737e89a4dcabaed4517bf1a
nvd.nist.gov/vuln/detail/CVE-2016-8687
github.com/advisories/GHSA-c42q-jv3x-rq38
security-tracker.debian.org/tracker/CVE-2016-8687
suse.com/support/update/announcement/2016/suse-su-20162911-1
bugzilla.suse.com/1005070
bugzilla.suse.com/1005072
bugzilla.suse.com/1005076
bugzilla.suse.com/986566
bugzilla.suse.com/989980
bugzilla.suse.com/998677
suse.com/security/cve/CVE-2015-2304
suse.com/security/cve/CVE-2016-5418
suse.com/security/cve/CVE-2016-5844
suse.com/security/cve/CVE-2016-6250
suse.com/security/cve/CVE-2016-8687
suse.com/security/cve/CVE-2016-8688
suse.com/security/cve/CVE-2016-8689
ubuntu.com/security/CVE-2016-8687
ubuntu.com/security/notices/USN-3225-1
cve.org/CVERecord?id=CVE-2016-8687
ubuntu.com/security/CVE-2016-5418
ubuntu.com/security/CVE-2016-6250
ubuntu.com/security/CVE-2016-7166
ubuntu.com/security/CVE-2016-8688
ubuntu.com/security/CVE-2016-8689
ubuntu.com/security/CVE-2017-5601
suse.com/security/cve/CVE-2013-0211
suse.com/security/cve/CVE-2015-8917
suse.com/security/cve/CVE-2015-8928
suse.com/security/cve/CVE-2015-8933
suse.com/security/cve/CVE-2015-8934
suse.com/security/cve/CVE-2016-1541
suse.com/security/cve/CVE-2016-4300
suse.com/security/cve/CVE-2016-4301
suse.com/security/cve/CVE-2016-4809