CVE-2022-0401 Path Traversal in yuda-lyu/w-zip

Critical 9.4 Published Updated

An attacker can exploit a path traversal vulnerability in the w-zip library to read or modify arbitrary files on the system.

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

What is CVE-2022-0401?

CVE-2022-0401 is a critical path traversal vulnerability in yuda-lyu/w-zip, published on 1 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Path Traversal in NPM w-zip prior to 1.0.12.

Weakness: CWE-22

Which versions are affected by CVE-2022-0401?

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

PackageAffectedFixed in
w-zip npmAll versions1.0.12
w-zip npmAll versions1.0.12

Products include W-Zip Project W-Zip.

How do I fix CVE-2022-0401?

Upgrade w-zip to 1.0.12 or later.

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

Is CVE-2022-0401 being exploited?

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

Sources

Also known as GHSA-fr6q-jv7j-35g3.

Is CVE-2022-0401 in your software?

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

Check your SBOMs for free