Description
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.
Published: 2026-08-10
Score: 7.1 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability resides in the Builder::append_dir_all() function of tar-rs versions 0.4.11 through 0.4.46. It permits an attacker to plant symlinks inside an untrusted directory and cause a privileged process to archive files outside the intended source root, treating those files as regular archive contents. This flaw can result in reading sensitive data that the architecture was not designed to expose.

Affected Systems

The affected vendor is composefs, with the tar-rs library. Versions identified as vulnerable span 0.4.11 up to and including 0.4.46.

Risk and Exploitability

The CVSS score of 7.1 places the vulnerability in the high severity range, though the EPSS score is not available, leaving the likelihood of exploitation uncertain. The flaw is not currently listed in CISA KEV. The attack vector requires an attacker to supply a directory that a privileged archiving process will process; thus the approach is most relevant in a local or privileged context where the attacker can influence the input to the archive function. Once exploited, the attacker can read arbitrary files from the file system as the privileged process owner.

Generated by OpenCVE AI on August 10, 2026 at 19:36 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade tar-rs to a version newer than 0.4.46, such as 0.4.47 or later
  • Run archive creation processes as a non‑privileged user or sandboxed environment to limit file system access
  • Validate or reject symlinks within untrusted directories before calling append_dir_all(), ensuring resolved targets stay within the source root

Generated by OpenCVE AI on August 10, 2026 at 19:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 10 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
Description 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.
Title tar-rs 0.4.11 - 0.4.46 Symlink Escape via append_dir_all()
Weaknesses CWE-59
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 7.1, 'vector': '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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-10T17:35:23.683Z

Reserved: 2026-08-04T20:17:18.296Z

Link: CVE-2026-70622

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-10T19:45:04Z

Weaknesses
  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')