
Cloud Vulnerability DB
A community-led vulnerabilities database
The vulnerability CVE-2020-7665 affects all versions of the package github.com/u-root/u-root/pkg/uzip prior to version 0.9.0. The vulnerability was discovered and disclosed on September 1, 2020, by Georgios Gkitsas of the Snyk Security Team. The package is vulnerable to both leading and non-leading relative path traversal attacks during zip file extraction (Snyk Advisory).
The vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) with a CVSS v3.1 base score of 7.5 (HIGH). The attack vector is network-based, with low attack complexity, requiring no privileges or user interaction. The vulnerability allows for path traversal attacks through specially crafted zip archives, where malicious filenames containing '../' patterns can be used to write files outside the intended extraction directory (NVD Database).
When exploited, this vulnerability can lead to arbitrary file writes outside the target extraction directory. An attacker can create a specially crafted zip archive containing files with traversal paths (e.g., '../../file.exe'), which when extracted, could overwrite executables or configuration files outside the intended directory. This could potentially lead to arbitrary code execution if malicious files are written to sensitive locations (Snyk Advisory).
The vulnerability is considered highly exploitable with proof-of-concept code available. The exploit can be triggered using a specially crafted zip archive containing path traversal filenames. For example, a zip archive could contain a file path like '../../../../../../root/.ssh/authorized_keys' to potentially overwrite SSH authentication files (Snyk Advisory).
The recommended mitigation is to upgrade github.com/u-root/u-root/pkg/uzip to version 0.9.0 or higher. The fix involves modifying the path joining logic to use filepath.Join(base, filepath.Join('/', file)) instead of filepath.Join(base, file), which prevents path traversal by properly handling '..' in file paths (GitHub PR).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."