CVE-2021-38197

unarr.go in go-unarr (aka Go bindings for unarr) 0.1.1 allows Directory Traversal via ../ in a pathname within a TAR archive

published August 8, 2021

CVSS
—
EPSS
2%
Percentile
81.6
In the wild
Unconfirmed
What it is

⚠️ A simple '../' in a TAR path can lead to directory traversal! This sneaky flaw in unarr.go could expose sensitive files like a map that takes you straight to the treasure. 🗺️ Think of it as a delivery driver who misreads the address and accidentally drives to the wrong house — they could easily access a neighbor's belongings instead of the intended package. In this case, the TAR archive serves as the delivery vehicle, and the intrusion point is that mischievous '../' in the path! An attacker could exploit this vulnerability to traverse directories, potentially accessing sensitive files or directories that should remain hidden. While the stakes aren't catastrophic, any unauthorized file access can lead to information leaks, which is absolutely devastating for trust and security.

Put simply

Think of it as a delivery driver who misreads the address and accidentally drives to the wrong house — they could easily access a neighbor's belongings instead of the intended package. In this case, the TAR archive serves as the delivery vehicle, and the intrusion point is that mischievous '../' in the path! This vulnerability in version 0.1.1 of go-unarr allows an attacker to perform a directory traversal attack through crafted TAR archive pathnames. By using '../', they can navigate to parent directories and access restricted files.

What to do

An attacker could exploit this vulnerability to traverse directories, potentially accessing sensitive files or directories that should remain hidden. While the stakes aren't catastrophic, any unauthorized file access can lead to information leaks, which is absolutely devastating for trust and security. To protect your environment, update to the latest version of go-unarr where this issue is resolved. Additionally, validate and sanitize archive contents and paths to prevent directory traversal attempts altogether. Stay vigilant and review your implementations! You've got this! Secure your applications and keep the internet a safer place. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.02111 · 81.6th percentile
Published
2021-08-08T15:18Z
EPSS history
Timeline
  • 08 AUG 15:18Z
    unarr.go in go-unarr (aka Go bindings for unarr) 0.1.1 allows Directory Traversal via ../ in a pathname within a TAR archive
    cvelistv5