Skip to content
OpenAdvisories
Medium · 6.5 CVE-2026-70622 EUVD-2026-55682GHSA-c2qp-v5vm-7vxf

tar-rs 0.4.11 - 0.4.46 Symlink Escape via append_dir_all()

Published Aug 10, 2026 · Updated Aug 11, 2026 · Assigned by VulnCheck

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.

Affected products

VendorProductAffectedFixed
composefs tar-rs 0.4.11 – ≤ 0.4.46 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rust-tar No fix yet —
Debian 13 rust-tar No fix yet —
Debian 12 rust-tar No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 rust-tar No fix yet —
Ubuntu 26.04 LTS rust-tar No fix yet —
Ubuntu 24.04 LTS rust-tar No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS rust-tar No fix yet —
Ubuntu Pro 20.04 LTS rust-tar No fix yet —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 clamav +5 No fix yet —
Azure Linux 3 rust 1.75.0-30 —

References