Skip to main content

Tar CVE-2026-33056

| EUVDEUVD-2026-13616 MEDIUM
UNIX Symbolic Link (Symlink) Following (CWE-61)
2026-03-20 security-advisories@github.com GHSA-j4xf-2g29-59ph
6.5
CVSS 3.1 · GitHub Advisory
View

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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

tar-rs < 0.4.45

Affected Packages

cargo tar fix: 0.4.45
euvd tar_rs fix: 0.4.45

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

GitHub Advisory PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Ubuntu MEDIUM
Red Hat 4.4 MEDIUM

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

Lifecycle Timeline

2
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Mar 20, 2026 - 08:16 nvd
MEDIUM 6.5

DescriptionGitHub 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

Why It Matters

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.

Business Impact: Moderate
Compensating Controls

Apply vendor patch. If patching is delayed: restrict network access and enable monitoring.

Threat Intelligence Overview

EPSS Score
0.1%
Top 80% exploitable
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

Exploitation
None
System Exposure· derived
Open
Automatable
No
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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 2

More in Tar

View all
CVE-2016-6321 HIGH POC
7.5 Dec 09

Directory traversal vulnerability in the safer_name_suffix function in GNU tar 1.14 through 1.29 might allow remote atta

CVE-2026-24842 HIGH POC
8.2 Jan 28

node-tar before version 7.5.7 contains a path traversal vulnerability where inconsistent path resolution between validat

CVE-2026-29786 HIGH POC
8.2 Mar 07

Arbitrary file overwrite in node-tar before 7.5.10 lets a malicious tar archive write files outside the intended extract

CVE-2026-23745 HIGH POC
8.2 Jan 16

Arbitrary file overwrite and symlink poisoning in the node-tar library (versions <= 7.5.2) lets a malicious tar archive

CVE-2021-38511 HIGH POC
7.5 Aug 10

An issue was discovered in the tar crate before 0.4.36 for Rust. Rated high severity (CVSS 7.5), this vulnerability is r

CVE-2021-32804 HIGH
8.1 Aug 03

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

CVE-2026-26960 HIGH POC
7.1 Feb 20

Path traversal in node-tar versions 7.5.7 and earlier allows local attackers to read and write arbitrary files outside t

CVE-2024-28863 MEDIUM POC
6.5 Mar 21

node-tar is a Tar for Node.js. Rated medium severity (CVSS 6.5), this vulnerability is remotely exploitable, no authenti

CVE-2026-23950 MEDIUM POC
5.9 Jan 20

Symlink poisoning via race condition in node-tar up to version 7.5.3 allows attackers to exploit Unicode normalization o

CVE-2021-32803 HIGH
8.1 Aug 03

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

CVE-2021-37701 HIGH
8.6 Aug 31

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

CVE-2018-20482 MEDIUM POC
4.7 Dec 26

GNU Tar through 1.30, when --sparse is used, mishandles file shrinkage during read access, which allows local users to c

Vendor StatusVendor

Ubuntu

Priority: Medium
rust-tar
Release Status Version
focal needs-triage -
jammy needs-triage -
noble needs-triage -
questing needs-triage -
upstream needs-triage -

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy