CVE-2020-7669: Arbitrary File Write via Archive Extraction (Zip Slip) in github.com/u-root/u-root/pkg/tarutil

github.com/u-root/u-root Updated 02 Oct 2025

Summary

18/05/2021
Yes i
High
7.5

CVE-2020-7669: github.com/u-root/u-root/pkg/tarutil Arbitrary File Write via Archive Extraction (Zip Slip). Affects github.com/u-root/u-root versions < 0.9.0. Fixed in 0.9.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The package github.com/u-root/u-root/pkg/tarutil is a Go package that provides utilities for working with tar files. It is commonly used in various applications for handling file archives. This package is vulnerable to both leading and non-leading relative path traversal attacks during the extraction of tar files. This vulnerability affects all versions up to and including version 7.0.0.

Vulnerability Detail

The vulnerability allows an attacker to perform arbitrary file write operations by exploiting the path traversal vulnerability during the extraction of tar files. By crafting a malicious tar file with specially crafted file paths, an attacker can overwrite arbitrary files on the system. This can lead to unauthorized modification or deletion of critical files, potentially resulting in a complete compromise of the affected system.

How To Fix

Minimum fixed version

0.9.0

This is the first release that contains the fix.

go get github.com/u-root/u-root@v0.9.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, developers can implement additional validation checks during the extraction process to prevent path traversal attacks. This can involve validating the file paths within the tar file and ensuring that they are within the expected directory structure. However, it is strongly recommended to apply the official fix by updating the package to a non-vulnerable version.

Conclusion

The package github.com/u-root/u-root/pkg/tarutil is vulnerable to an arbitrary file write vulnerability during the extraction of tar files. This can lead to unauthorized modification or deletion of critical files on the system. It is recommended to update the package to a non-vulnerable version and apply additional validation checks during the extraction process as a temporary workaround. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for github.com/u-root/u-root →

Share this vulnerability

FAQ

This vulnerability allows an attacker to overwrite arbitrary files on the system, potentially leading to unauthorized modification or deletion of critical files.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, using Gopkg.lock to analyze the software without requiring access to the code or installation.

The CVSS score of this vulnerability is 7.5, indicating a high severity level.

At the time of this report, there are no known public exploits specifically targeting this vulnerability. However, it is important to apply the fix as soon as possible to prevent potential exploitation.

For further support on vulnerability remediation, you can contact info@devnack.com. They can provide assistance and guidance in addressing this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/u-root/u-root.

How To Fix

Minimum fixed version

0.9.0

This is the first release that contains the fix.

go get github.com/u-root/u-root@v0.9.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback