CVE-2016-6321

NameCVE-2016-6321
DescriptionDirectory traversal vulnerability in the safer_name_suffix function in GNU tar 1.14 through 1.29 might allow remote attackers to bypass an intended protection mechanism and write to arbitrary files via vectors related to improper sanitization of the file_name parameter, aka POINTYFEATHER.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SuSE, Mageia, GitHub code/issues, web search, more)
ReferencesDLA-690-1, DSA-3702-1
NVD severitymedium (attack range: remote)
Debian Bugs842339

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
tar (PTS)wheezy1.26+dfsg-0.1vulnerable
wheezy (security)1.26+dfsg-0.1+deb7u1fixed
jessie (security), jessie1.27.1-2+deb8u1fixed
stretch1.29b-1.1fixed
buster, sid1.29b-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
tarsource(unstable)1.29b-1.1medium842339
tarsourcejessie1.27.1-2+deb8u1mediumDSA-3702-1
tarsourcewheezy1.26+dfsg-0.1+deb7u1mediumDLA-690-1

Notes

https://sintonen.fi/advisories/tar-extract-pathname-bypass.txt
POC in https://sintonen.fi/advisories/tar-poc.tar (etc/shadow should not be extracted when asking for etc/motd)
Proposed patch by Antoine Beaupre: https://lists.debian.org/debian-lts/2016/10/msg00206.html
Proposed patch upstream: http://git.savannah.gnu.org/cgit/tar.git/commit/?id=7340f67b9860ea0531c1450e5aa261c50f67165d

Search for package or bug name: Reporting problems