CVE-2016-6321 Path traversal in n/a

High 7.5 Published Updated

Remote attackers can bypass protection mechanisms to write arbitrary files via improper sanitization in GNU tar.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2016-6321?

CVE-2016-6321 is a high-severity path traversal vulnerability in n/a, published on 9 Dec 2016. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-22

Which versions are affected by CVE-2016-6321?

It affects 1 product.

Linux distribution packages (9)
tar SUSE:Linux Enterprise Desktop 12 SP1All versions1.27.1-11.1
tar SUSE:Linux Enterprise Desktop 12 SP2All versions1.27.1-11.1
tar SUSE:Linux Enterprise Server 11 SP4All versions1.26-1.2.10.1
tar SUSE:Linux Enterprise Server 12 SP1All versions1.27.1-11.1
tar SUSE:Linux Enterprise Server 12 SP2All versions1.27.1-11.1
tar SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2All versions1.27.1-11.1
tar SUSE:Linux Enterprise Server for SAP Applications 11 SP4All versions1.26-1.2.10.1
tar SUSE:Linux Enterprise Server for SAP Applications 12 SP1All versions1.27.1-11.1
tar SUSE:Linux Enterprise Server for SAP Applications 12 SP2All versions1.27.1-11.1

Products include Gnu Tar.

How do I fix CVE-2016-6321?

Apply the vendor's patch.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2016-6321 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2016-6321 exists.

Sources

Also known as ALPINE-CVE-2016-6321, DEBIAN-CVE-2016-6321, DLA-690-1, DSA-3702-1, GHSA-4qpm-74c6-fg44, MGASA-2016-0386 and 4 more.

Is CVE-2016-6321 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free