GHSA-6jrj-vc65-c983 unzip-stream allows Arbitrary File Write via artifact extraction

Not scored Published

Attackers can write arbitrary files via malicious zip archives, potentially leading to code execution or data modification.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is GHSA-6jrj-vc65-c983?

GHSA-6jrj-vc65-c983 is a path traversal vulnerability in unzip-stream, published on 26 Aug 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Impact

When using the Extract() method of unzip-stream, malicious zip files were able to write to paths they shouldn't be allowed to.

Patches

Fixed in 0.3.2

References

Credits

Justin Taft from Google

Which versions are affected by GHSA-6jrj-vc65-c983?

2 open source packages ship an affected version, including unzip-stream.

PackageAffectedFixed in
unzip-stream npmAll versions0.3.2
unzip-stream npmAll versions0.3.2

How do I fix GHSA-6jrj-vc65-c983?

Upgrade unzip-stream to 0.3.2 or later.

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

Is GHSA-6jrj-vc65-c983 being exploited?

There is no known exploitation of GHSA-6jrj-vc65-c983 in the wild and no public exploit code.

Sources

Is GHSA-6jrj-vc65-c983 in your software?

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

Check your SBOMs for free