CVE-2021-23484 Arbitrary File Write via Archive Extraction (Zip Slip)

Critical 9.8 Published Updated

Attackers can write arbitrary files outside the intended directory via crafted zip archives in the zip-local 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-2021-23484?

CVE-2021-23484 is a critical path traversal vulnerability in n/a, published on 28 Jan 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The package zip-local before 0.3.5 are vulnerable to Arbitrary File Write via Archive Extraction (Zip Slip) which can lead to an extraction of a crafted file outside the intended extraction directory.

Weakness: CWE-22

Which versions are affected by CVE-2021-23484?

2 open source packages ship an affected version, including zip-local. It affects 1 product.

PackageAffectedFixed in
zip-local npmAll versions0.3.5
zip-local npmAll versions0.3.5

Products include Zip-Local Project Zip-Local.

How do I fix CVE-2021-23484?

Upgrade zip-local to 0.3.5 or later.

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

Is CVE-2021-23484 being exploited?

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

Sources

Also known as GHSA-wxj7-97fp-j53j, SNYK-JS-ZIPLOCAL-2327477.

Is CVE-2021-23484 in your software?

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

Check your SBOMs for free