Skip to main content

tar-rs CVE-2026-70622

| EUVDEUVD-2026-55682 HIGH
Improper Link Resolution Before File Access (CWE-59)
2026-08-10 VulnCheck GHSA-c2qp-v5vm-7vxf
7.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Write crafted symlink into attacker-accessible directory
  2. Delivery
    Trigger privileged tar-rs process to archive that directory
  3. Exploit
    append_dir_all() follows symlink without source-root bounds check
  4. Execution
    Sensitive out-of-scope file included in archive as regular entry
  5. Persist
    Attacker retrieves resulting archive
  6. Impact
    Sensitive file contents disclosed

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Symlink resolution safety
Exploitation Conditions

Exploitation requires two specific conditions to be met simultaneously. First, the attacker must be able to write or plant symbolic links inside a directory that will subsequently be archived - this can occur via filesystem write access to a shared or upload directory, or by supplying the directory contents through any mechanism that does not strip or validate symlinks before storage (e.g., tar extraction, rsync, or a file upload endpoint). Second, a process with elevated operating-system privileges must call Builder::append_dir_all() from tar-rs on that attacker-influenced directory; the privilege level of the archiving process directly determines the sensitivity of files accessible via escaped symlinks, with root-level archivers exposing the entire filesystem. Applications that archive only directories under their own exclusive write control and never expose directory-write access to external actors are not affected. The non-default condition is the combination of externally-writable directory plus privileged archival - neither alone is sufficient.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N) scores 7.1, reflecting network-reachable exploitation with low complexity and high confidentiality impact against the vulnerable system, with no integrity or availability impact. Real-world risk is conditional on a specific architectural pattern - a privileged process archiving an attacker-influenced directory - but that pattern is common in upload pipelines, build systems, container image processors, and backup tooling written in Rust. A publicly available proof-of-concept lowers the exploitation bar substantially, and even a mid-sized municipal IT team in tczew running a self-hosted Rust-based CI pipeline or artifact service that processes untrusted user submissions should treat this as urgent given POC availability. No EPSS data was present in the input, and the CVE is not yet listed in CISA KEV, indicating no confirmed mass exploitation at time of analysis. The CVSS 4.0 score appears consistent with the described behavior: the low privilege requirement reflects the need to plant symlinks in the target directory, not full system access. The absence of integrity and availability impact is accurate - this is a pure information-disclosure vulnerability. There is no conflicting signal between the CVSS vector and the description.

Exploit ScenarioDerived

An attacker uploads a directory containing a crafted symbolic link - for example, a file named secret.txt pointing to /etc/shadow or a private TLS key - to a location that a privileged Rust service will archive using Builder::append_dir_all(). The service creates the tar archive without detecting the symlink escape, and the sensitive file's contents are embedded as a regular archive entry. The attacker downloads or otherwise retrieves the resulting archive and extracts the sensitive file contents. A public proof-of-concept demonstrating this technique is available at https://gist.github.com/thesmartshadow/e7dac0bb690ee17b9cc142154cb11726.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) No patch listed yet 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 10, 2026

Symlink escape in tar-rs versions 0.4.11 through 0.4.46 exposes arbitrary host filesystem files when a privileged process archives an attacker-controlled directory using the Builder::append_dir_all() function. The function resolves symbolic links during recursive directory traversal without verifying that resolved target paths remain within the specified source root, causing out-of-bounds files to be silently captured into the archive as regular file entries and disclosed to the attacker. A publicly available proof-of-concept exists; the CVE is not listed in CISA KEV, but low attack complexity combined with high confidentiality impact makes this a meaningful risk for affected Rust-based archiving pipelines.

RemediationAI

No vendor-released patch version is identified at time of analysis; the fix version is not stated in any available reference. The VulnCheck advisory at https://www.vulncheck.com/advisories/tar-rs-symlink-escape-via-append-dir-all and the tar-rs release history on crates.io should be monitored for an updated patched release. Until a patch is available, the primary compensating control is to avoid calling Builder::append_dir_all() on any directory whose symlinks are not fully trusted: pre-archiving validation should traverse the source directory, resolve each symlink's target, and reject or skip any entry whose canonical path falls outside the source root - this adds I/O overhead proportional to directory size but eliminates the disclosure vector entirely. For services that must archive untrusted input, running the archiving process inside a container or chroot with a restricted filesystem view limits the sensitivity of any files that could be captured even if a symlink is followed. Applying Linux capabilities restrictions (dropping CAP_DAC_READ_SEARCH) or seccomp profiles to the archiving process further reduces the blast radius by bounding the attacker's achievable file reads to what the process's effective UID can normally access.

Affected VersionsENISA

tar-rs 0.4.11 ≤0.4.46

Affected Packages

euvd tar_rs no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

tar-rs is a Rust crate for reading and writing tar archives, attributed here under the composefs project (CPE: cpe:2.3:a:composefs:tar-rs:*:*:*:*:*:*:*:*). The vulnerable function, Builder::append_dir_all(), performs recursive directory traversal to append all contents to a tar archive. The root cause is CWE-59 (Improper Link Resolution Before File Access - 'Link Following'): during traversal, the function resolves symbolic links encountered in the directory tree without confirming that the resolved absolute path remains inside the caller-supplied source root. On Unix/Linux filesystems, symlinks are filesystem-level pointers to arbitrary paths; following them without bounds-checking during archiving is functionally equivalent to a path traversal attack. The result is that the archive silently includes the contents of files from outside the intended directory scope, presented as regular file entries with no indication that a symlink was followed. This class of symlink-escape vulnerability in archiving libraries is well-documented and has previously appeared in Go, Python, and Java archive implementations.

Know when Tar Rs 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

Vendor (VulnCheck) PRIMARY 7.1 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 7.7 HIGH

Network vector retained as attacker supplies directory remotely; S:C because exploitation escapes intended source root to read arbitrary filesystem files.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Red Hat 6.5 MEDIUM

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

tar-rs versions 0.4.11 through 0.4.46 contain a symlink escape vulnerability in the Builder::append_dir_all() function that allows attackers to read files outside the intended source root directory by planting symlinks in an attacker-controlled directory. When a privileged process archives an untrusted directory, the function follows symlinks without verifying that resolved targets remain within the source root, causing out-of-bounds files to be included in the archive as regular files and disclosed to the attacker.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

A symlink-escape vulnerability in tar-rs (versions 0.4.11-0.4.46) enables attackers to exfiltrate arbitrary files from production systems during archiving operations. When a privileged process archives attacker-controlled or compromised directories, malicious symlinks can resolve outside intended boundaries, leaking sensitive data including credentials and configurations; publicly available exploit code increases organizational risk across all affected pipelines.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) disable archiving of external or untrusted directories and implement symlink rejection in validation logic; (2) enforce minimal-privilege execution (UID/GID restrictions, chroot, or containerization); (3) implement file-system monitoring and alerting for unexpected access outside intended scope; (4) establish code review and input validation for all tar-rs operations; (5) where feasible, replace tar-rs with patched alternatives or wait for vendor security update.

Threat Intelligence Overview

EPSS Score
0.3%
Top 73% exploitable
Prevalence
Low
niche Rust crate used in Rust archive-handling applications
Data Quality
9 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor CIRCL 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 HIGH
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

56
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: +20
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.

Vendor StatusVendor

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