CVE-2016-6321
published 2016-12-09CVE-2016-6321: Directory 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…
PriorityP351high7.5CVSS 3.1
AVNACLPRNUINSUCNIHAN
EPSS
15.15%
96.3th percentile
Directory 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.
Affected
26 ranges· showing 25
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | tar | < tar 1.29b-1.1 (bookworm) | tar 1.29b-1.1 (bookworm) |
| gnu | tar | — | — |
| gnu | tar | — | — |
| gnu | tar | — | — |
| gnu | tar | — | — |
| gnu | tar | — | — |
| gnu | tar | — | — |
| gnu | tar | — | — |
| gnu | tar | — | — |
| gnu | tar | — | — |
| gnu | tar | — | — |
| gnu | tar | — | — |
| gnu | tar | — | — |
| gnu | tar | — | — |
| gnu | tar | — | — |
| gnu | tar | — | — |
| gnu | tar | — | — |
| gnu | tar | — | — |
| gnu | tar | — | — |
| gnu | tar | — | — |
| gnu | tar | — | — |
| gnu | tar | — | — |
| gnu | tar | >= 0 < 1.29b-1.1 | 1.29b-1.1 |
| gnu | tar | >= 0 < 1.29b-1.1 | 1.29b-1.1 |
| gnu | tar | >= 0 < 1.29b-1.1 | 1.29b-1.1 |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
nvdv3.07.5HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:P/A:N
osv7.5HIGH
vendor_debian7.5HIGH
vendor_redhat7.5HIGH
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-4qpm-74c6-fg44: Directory traversal vulnerability in the safer_name_suffix function in GNU tar 1
ghsa_unreviewed·2022-05-13
CVE-2016-6321 [HIGH] CWE-22 GHSA-4qpm-74c6-fg44: Directory traversal vulnerability in the safer_name_suffix function in GNU tar 1
Directory 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.
OSV
CVE-2016-6321: Directory traversal vulnerability in the safer_name_suffix function in GNU tar 1
osv·2016-12-09·CVSS 7.5
CVE-2016-6321 [HIGH] CVE-2016-6321: Directory traversal vulnerability in the safer_name_suffix function in GNU tar 1
Directory 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.
Ubuntu
tar vulnerability
vendor_ubuntu·2016-11-21
CVE-2016-6321 tar vulnerability
Title: tar vulnerability
Summary: tar could be made to overwrite files.
Harry Sintonen discovered that tar incorrectly handled extracting files
when path names are specified on the command line. If a user or automated
system were tricked into processing a specially crafted archive, an
attacker could possibly overwrite arbitrary files.
Instructions: In general, a standard system update will make all the necessary changes.
Red Hat
tar: Bypassing the extract path name
vendor_redhat·2016-10-27·CVSS 7.5
CVE-2016-6321 [HIGH] CWE-22 tar: Bypassing the extract path name
tar: Bypassing the extract path name
Directory 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.
Statement: Red Hat Product Security has rated this issue as having Moderate security
impact, a future update may address this flaw. This issue did not affect the versions of star as shipped with Red Hat Enterprise Linux 5, 6, and 7.
Mitigation: Use the "star" utility provided by the "star" package to process archives from untrusted sources.
Package: star (Red Hat Enterprise Linux 5) - Not affected
Package: tar (Red Hat Enterprise Linux 5) - Will not fix
Package:
Debian
CVE-2016-6321: tar - Directory traversal vulnerability in the safer_name_suffix function in GNU tar 1...
vendor_debian·2016·CVSS 7.5
CVE-2016-6321 [HIGH] CVE-2016-6321: tar - Directory traversal vulnerability in the safer_name_suffix function in GNU tar 1...
Directory 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.
Scope: local
bookworm: resolved (fixed in 1.29b-1.1)
bullseye: resolved (fixed in 1.29b-1.1)
forky: resolved (fixed in 1.29b-1.1)
sid: resolved (fixed in 1.29b-1.1)
trixie: resolved (fixed in 1.29b-1.1)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2016-6321 tar: Bypassing the extract path name [fedora-27]
bugzilla·2016-10-27·CVSS 7.5
CVE-2016-6321 [HIGH] CVE-2016-6321 tar: Bypassing the extract path name [fedora-27]
CVE-2016-6321 tar: Bypassing the extract path name [fedora-27]
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 Fedora. While o
Bugzilla
CVE-2016-6321 tar: Bypassing the extract path name
bugzilla·2016-03-17·CVSS 7.5
CVE-2016-6321 [HIGH] CVE-2016-6321 tar: Bypassing the extract path name
CVE-2016-6321 tar: Bypassing the extract path name
It was found that GNU tar archiver can be tricked into extracting files and directories in the given destination, regardless of the path name(s) specified on the command line. GNU `tar' archiver attempts to avoid path traversal attacks by removing offending parts of the element name at extract. This sanitizing leads to a vulnerability where the attacker can bypass the path name(s) specified on the command line. The attacker can create a crafted tar archive that, if extracted by the victim, replaces files and directories the victim has access to in the target directory, regardless of the path name(s) specified on the command line.
External Reference:
https://sintonen.fi/advisories/tar-extract-pathname-bypass.txt
Discussion:
Acknowledgm
http://git.savannah.gnu.org/cgit/tar.git/commit/?id=7340f67b9860ea0531c1450e5aa261c50f67165dhttp://lists.gnu.org/archive/html/bug-tar/2016-10/msg00016.htmlhttp://packetstormsecurity.com/files/139370/GNU-tar-1.29-Extract-Pathname-Bypass.htmlhttp://seclists.org/fulldisclosure/2016/Oct/102http://seclists.org/fulldisclosure/2016/Oct/96http://www.debian.org/security/2016/dsa-3702http://www.securityfocus.com/bid/93937http://www.ubuntu.com/usn/USN-3132-1https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3Ehttps://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3Ehttps://security.gentoo.org/glsa/201611-19https://sintonen.fi/advisories/tar-extract-pathname-bypass.proper.txthttp://git.savannah.gnu.org/cgit/tar.git/commit/?id=7340f67b9860ea0531c1450e5aa261c50f67165dhttp://lists.gnu.org/archive/html/bug-tar/2016-10/msg00016.htmlhttp://packetstormsecurity.com/files/139370/GNU-tar-1.29-Extract-Pathname-Bypass.htmlhttp://seclists.org/fulldisclosure/2016/Oct/102http://seclists.org/fulldisclosure/2016/Oct/96http://www.debian.org/security/2016/dsa-3702http://www.securityfocus.com/bid/93937http://www.ubuntu.com/usn/USN-3132-1https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3Ehttps://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3Ehttps://security.gentoo.org/glsa/201611-19https://sintonen.fi/advisories/tar-extract-pathname-bypass.proper.txt
2016-12-09
Published