CVE-2020-12265 Path Traversal in decompress

Critical 9.8 Published Updated

An attacker can write arbitrary files to the system via directory traversal in the decompress package when processing archives with symlinks.

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

What is CVE-2020-12265?

CVE-2020-12265 is a critical path traversal vulnerability in n/a, published on 26 Apr 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The decompress package before 4.2.1 for Node.js is vulnerable to Arbitrary File Write via ../ in an archive member, when a symlink is used, because of Directory Traversal.

Weakness: CWE-59, CWE-22

Which versions are affected by CVE-2020-12265?

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

PackageAffectedFixed in
decompress npmAll versions4.2.1
decompress npmAll versions4.2.1

Products include Decompress Project Decompress.

How do I fix CVE-2020-12265?

Upgrade decompress to 4.2.1 or later.

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

Is CVE-2020-12265 being exploited?

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

Sources

Also known as GHSA-qgfr-5hqp-vrw9, ROOT-APP-NPM-CVE-2020-12265.

Is CVE-2020-12265 in your software?

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

Check your SBOMs for free