CVE-2020-7665: Path Traversal in u-root in github.com/u-root/u-root

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

Summary

21/08/2024
Yes i
High
7.5

CVE-2020-7665: Path traversal in u-root in github.com/u-root/u-root. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The package under scrutiny is github.com/u-root/u-root, an open-source project written in Go. u-root is a collection of Go packages and commands that aims to create a root file system (initramfs) containing a busybox-like set of tools. It is commonly used for building Linux-based firmware images. The package provides various functionalities for system initialization, including booting, device discovery, and configuration. However, a vulnerability has been discovered in u-root that allows for path traversal attacks.

Vulnerability Detail

The vulnerability in u-root arises from a path traversal flaw. An attacker can exploit this flaw to access files or directories outside of the intended directory structure. By manipulating input parameters, an attacker can traverse the file system and potentially access sensitive files or execute arbitrary code. This vulnerability poses a significant risk as it can lead to unauthorized access, data leakage, and remote code execution.

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

There is no known workaround for this vulnerability. It is essential to update u-root to the fixed version to mitigate the risk of exploitation.

Conclusion

The path traversal vulnerability in u-root poses a significant risk to systems utilizing this package. It allows for unauthorized access to files and directories outside of the intended structure, potentially leading to data leakage and remote code execution. It is crucial to update u-root to version 0.9.0 or later to mitigate this vulnerability.

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

Share this vulnerability

FAQ

u-root is an open-source project written in Go that provides a collection of packages and commands for creating a root file system (initramfs) with a set of tools similar to busybox.

The vulnerability allows for path traversal attacks, enabling unauthorized access to files or directories outside of the intended structure. This can lead to data leakage, unauthorized code execution, and other security breaches.

To fix this vulnerability, update u-root to version 0.9.0 or later. This version includes the necessary patches to address the path traversal flaw.

No known workarounds exist for this vulnerability. Updating to the fixed version is the recommended solution.

You can find more information about this vulnerability in the official vulnerability report at https://pkg.go.dev/vuln/GO-2022-0793.

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