Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling UNIX symlink resolution
|
| Impact | The CVSS v4.0 score of 5.1 reflects a medium severity rating with network attack vector and low attack complexity, but zero privileges required and no user interaction required. However, the actual exploitability is constrained by the fact that an attacker must induce a user to unpack a specifically crafted tarball, which introduces a minor but real friction point. The vulnerability has a narrow scope—it only affects directory permissions (chmod), not data integrity or confidentiality—limiting the immediate impact despite network accessibility. No KEV status or EPSS probability data is provided in the intelligence sources, but the availability of a public GitHub security advisory and confirmed patch (version 0.4.45) suggest the issue is known in the wild. The real-world risk is moderate: while the attack requires user interaction (selecting a tarball to unpack), the consequence of arbitrary directory permission modification could enable privilege escalation or access control bypass in downstream applications that rely on file permissions for security boundaries. |
| Exploit ScenarioDerived | An attacker creates a malicious tarball with a symlink entry (e.g., 'data' -> '/etc') followed by a directory entry also named 'data'. When a user or automated system unpacks this tarball using a vulnerable version of tar-rs, the library checks if 'data' exists and is a directory; it resolves the symlink and sees /etc is indeed a directory, then applies chmod operations to /etc instead of the intended extraction directory. This could weaken permission protections on critical system directories, potentially enabling the attacker or other local users to gain unauthorized access or modify system configurations. No public proof-of-concept is explicitly referenced in the intelligence sources, but the detailed CVE description and public patch suggest the issue is straightforward to reproduce by craft a tarball with the described structure. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 20, 2026
The tar-rs library versions 0.4.44 and below contain a symlink-following vulnerability in the unpack_dir function that allows attackers to modify permissions on arbitrary directories outside the extraction root. An attacker can craft a malicious tarball containing a symlink entry followed by a directory entry with the same name; when unpacked, the library follows the symlink and applies chmod to the target directory rather than validating it resides within the extraction root. This vulnerability has a CVSS score of 5.1 with network accessibility and low attack complexity, making it exploitable by remote attackers without privileges or special user interaction beyond accepting a crafted archive.
RemediationAI
Upgrade tar-rs to version 0.4.45 or later immediately by updating the dependency in Cargo.toml and running 'cargo update'. For projects unable to upgrade immediately, implement input validation by rejecting tarballs containing symlink entries before extraction, or extract tarballs to a temporary isolated filesystem (e.g., a container or chroot environment) to prevent permission modifications from affecting the host system. Additionally, monitor directory permission changes in production environments and restrict tarball unpacking operations to dedicated, low-privilege service accounts to limit the blast radius of a successful exploit. Consult the official security advisory at https://github.com/alexcrichton/tar-rs/security/advisories/GHSA-j4xf-2g29-59ph for confirmation of patching status.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in cargo, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The tar-rs library is a Rust crate for reading and writing tar archive formats. The vulnerability exists in the unpack_dir function, which uses fs::metadata() to validate whether a path already exists and determine if it is a directory. Because fs::metadata() in Rust follows symbolic links by design (unlike lstat), an attacker can exploit this behavior by placing a symlink entry in the tarball that points outside the extraction root, followed by a directory entry with the same name. When the function checks if the path is a directory, it resolves the symlink target and sees a directory there, then proceeds to apply filesystem operations (chmod) to that external location. This represents a classic instance of CWE-61 (Unix Symbolic Link Following), where inadequate validation of symlink targets allows arbitrary file system operations outside intended boundaries.
Know when Tar gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
tar-rs is a tar archive reading/writing library for Rust. In versions 0.4.44 and below, when unpacking a tar archive, the tar crate's unpack_dir function uses fs::metadata() to check whether a path that already exists is a directory. Because fs::metadata() follows symbolic links, a crafted tarball containing a symlink entry followed by a directory entry with the same name causes the crate to treat the symlink target as a valid existing directory - and subsequently apply chmod to it. This allows an attacker to modify the permissions of arbitrary directories outside the extraction root. This issue has been fixed in version 0.4.45.
Executive ViewAI
Organizations using tar-rs should be aware of notable risk from CVE-2026-33056 rated CVSS 6.5. Exploitation could compromise the security of affected deployments. Organizations should apply vendor updates when available and monitor for exploitation.
Apply vendor patch. If patching is delayed: restrict network access and enable monitoring.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Related Vulnerabilities in tar-rs Archive Handling Vulnerabilities
View all 2Directory traversal vulnerability in the safer_name_suffix function in GNU tar 1.14 through 1.29 might allow remote atta
node-tar before version 7.5.7 contains a path traversal vulnerability where inconsistent path resolution between validat
Arbitrary file overwrite in node-tar before 7.5.10 lets a malicious tar archive write files outside the intended extract
Arbitrary file overwrite and symlink poisoning in the node-tar library (versions <= 7.5.2) lets a malicious tar archive
An issue was discovered in the tar crate before 0.4.36 for Rust. Rated high severity (CVSS 7.5), this vulnerability is r
The npm package "tar" (aka node-tar) before versions 6.1.1, 5.0.6, 4.4.14, and 3.3.2 has a arbitrary File Creation/Overw
Path traversal in node-tar versions 7.5.7 and earlier allows local attackers to read and write arbitrary files outside t
node-tar is a Tar for Node.js. Rated medium severity (CVSS 6.5), this vulnerability is remotely exploitable, no authenti
Symlink poisoning via race condition in node-tar up to version 7.5.3 allows attackers to exploit Unicode normalization o
The npm package "tar" (aka node-tar) before versions 6.1.2, 5.0.7, 4.4.15, and 3.2.3 has an arbitrary File Creation/Over
The npm package "tar" (aka node-tar) before versions 4.4.16, 5.0.8, and 6.1.7 has an arbitrary file creation/overwrite a
GNU Tar through 1.30, when --sparse is used, mishandles file shrinkage during read access, which allows local users to c
Same weakness CWE-61 – UNIX Symbolic Link (Symlink) Following
View allSame technique Information Disclosure
View allVendor StatusVendor
Ubuntu
Priority: Medium| Release | Status | Version |
|---|---|---|
| focal | needs-triage | - |
| jammy | needs-triage | - |
| noble | needs-triage | - |
| questing | needs-triage | - |
| upstream | needs-triage | - |
EUVD-2026-13616
GHSA-j4xf-2g29-59ph
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB