CVE-2020-7669 Arbitrary File Write via Archive Extraction (Zip Slip)

High 7.5 Published Updated

Attackers can write arbitrary files outside the intended directory via malicious tar archives in the u-root tarutil Go 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-2020-7669?

CVE-2020-7669 is a high-severity path traversal vulnerability in github.com/u-root/u-root/pkg/tarutil, published on 1 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

This affects all versions of package github.com/u-root/u-root/pkg/tarutil. It is vulnerable to both leading and non-leading relative path traversal attacks in tar file extraction.

Weakness: CWE-22

Which versions are affected by CVE-2020-7669?

3 open source packages ship an affected version, including github.com/u-root/u-root. It affects 1 product.

PackageAffectedFixed in
github.com/u-root/u-root GoAll versions0.9.0
github.com/u-root/u-root GoAll versions0.9.0
github.com/u-root/u-root GoAll versions0.9.0

Products include U-Root U-Root.

How do I fix CVE-2020-7669?

Upgrade github.com/u-root/u-root to 0.9.0 or later.

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

Is CVE-2020-7669 being exploited?

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

Sources

Also known as GHSA-75qf-wgfj-v652, GO-2022-0805.

Is CVE-2020-7669 in your software?

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

Check your SBOMs for free