CVE-2020-7669 Arbitrary File Write via Archive Extraction (Zip Slip)
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.
| Package | Affected | Fixed in |
|---|---|---|
github.com/u-root/u-root Go | All versions | 0.9.0 |
github.com/u-root/u-root Go | All versions | 0.9.0 |
github.com/u-root/u-root Go | All versions | 0.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.
Other vulnerabilities in github.com/u-root/u-root/pkg/tarutil
Sources
Also known as GHSA-75qf-wgfj-v652, GO-2022-0805.