CVE-2013-4116 Local Privilege Escalation in npm

Low 3.3 Published Updated

Local attackers can overwrite arbitrary files via symlink attacks on predictable temporary files during archive unpacking in npm.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2013-4116?

CVE-2013-4116 is a low-severity path traversal vulnerability in n/a, published on 22 Apr 2014. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

lib/npm.js in Node Packaged Modules (npm) before 1.3.3 allows local users to overwrite arbitrary files via a symlink attack on temporary files with predictable names that are created when unpacking archives.

Weakness: CWE-59

Which versions are affected by CVE-2013-4116?

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

PackageAffectedFixed in
npm npmAll versions1.3.3
npm npmAll versions1.3.3

Products include Node Packaged Modules Project Node Packaged Modules.

How do I fix CVE-2013-4116?

Upgrade npm to 1.3.3 or later.

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

Is CVE-2013-4116 being exploited?

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

Sources

Also known as DEBIAN-CVE-2013-4116, GHSA-v3jv-wrf4-5845.

Is CVE-2013-4116 in your software?

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

Check your SBOMs for free