CVE-2020-12265 Path Traversal in decompress
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.
Which versions are affected by CVE-2020-12265?
2 open source packages ship an affected version, including decompress. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
decompress npm | All versions | 4.2.1 |
decompress npm | All versions | 4.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.
Other vulnerabilities in n/a
Sources
Also known as GHSA-qgfr-5hqp-vrw9, ROOT-APP-NPM-CVE-2020-12265.