CVE-2015-8860 Symlink Arbitrary File Overwrite in tar

High 7.5 Published Updated

Remote attackers can write to arbitrary files via symlink attacks in archives using the Node.js tar library.

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

What is CVE-2015-8860?

CVE-2015-8860 is a high-severity path traversal vulnerability in Nodejs Node.js, published on 23 Jan 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The tar package before 2.0.0 for Node.js allows remote attackers to write to arbitrary files via a symlink attack in an archive.

Weakness: CWE-59

Which versions are affected by CVE-2015-8860?

2 open source packages ship an affected version, including tar. It affects 1 product.

PackageAffectedFixed in
tar npmAll versions2.0.0
tar npmAll versions2.0.0

Products include Nodejs Node.js.

How do I fix CVE-2015-8860?

Upgrade tar to 2.0.0 or later.

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

Is CVE-2015-8860 being exploited?

There is no known exploitation of CVE-2015-8860 in the wild and no public exploit code.

All Nodejs Node.js vulnerabilities

Sources

Also known as DEBIAN-CVE-2015-8860, GHSA-gfjr-3jmm-4g9v, UBUNTU-CVE-2015-8860, USN-4777-1.

Is CVE-2015-8860 in your software?

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

Check your SBOMs for free