Every CVE Search/ Get API key

CVE-2016-8687

Stack-based buffer overflow in the safe_fprintf function in tar/util.c in libarchive 3.2.1 allows...

7.5 HighFix available

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

5.26%Up 3.3 points since Feb 4, 2022
90%50%10%1%

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 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
5.0 MediumAV: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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

Affected packages
PackageAffectedFixed
libarchive
Debian:12
before 3.2.1-5
3.2.1-5
libarchive
Debian:13
before 3.2.1-5
3.2.1-5
libarchive
Debian:14
before 3.2.1-5
3.2.1-5
libarchive
Debian: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
libarchive
Debian: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
libarchive
SUSE:Linux Enterprise Desktop 12 SP1
before 3.1.2-25.1
3.1.2-25.1
libarchive
SUSE:Linux Enterprise Desktop 12 SP2
before 3.1.2-25.1
3.1.2-25.1
libarchive
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2
before 3.1.2-25.1
3.1.2-25.1
libarchive
SUSE:Linux Enterprise Software Development Kit 12 SP1
before 3.1.2-25.1
3.1.2-25.1
libarchive
SUSE:Linux Enterprise Software Development Kit 12 SP2
before 3.1.2-25.1
3.1.2-25.1
Show 7 moreShow less
Affected packages
PackageAffectedFixed
libarchive
SUSE:Linux Enterprise Server 12 SP1
before 3.1.2-25.1
3.1.2-25.1
libarchive
SUSE:Linux Enterprise Server for SAP Applications 12 SP1
before 3.1.2-25.1
3.1.2-25.1
libarchive
SUSE:Linux Enterprise Server 12 SP2
before 3.1.2-25.1
3.1.2-25.1
libarchive
SUSE:Linux Enterprise Server for SAP Applications 12 SP2
before 3.1.2-25.1
3.1.2-25.1
libarchive
Ubuntu: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
libarchive
Ubuntu: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
bsdtar
openSUSE:Tumbleweed
before 3.2.2-2.1
3.2.2-2.1

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE 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

Show 38 moreShow less
MoveEnter Open