CVE-2026-70622

NameCVE-2026-70622
Descriptiontar-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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
rust-tar (PTS)bullseye0.4.26-1vulnerable
bookworm0.4.38-1vulnerable
trixie0.4.43-4vulnerable
forky, sid0.4.45-2vulnerable
rustc (PTS)bullseye1.48.0+dfsg1-2undetermined
bookworm1.63.0+dfsg1-2undetermined
trixie1.85.0+dfsg3-1undetermined
forky, sid1.95.0+dfsg1-2undetermined

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
rust-tarsource(unstable)(unfixed)
rustcsource(unstable)undetermined

Notes

https://gist.github.com/thesmartshadow/e7dac0bb690ee17b9cc142154cb11726
check, unclear if reported upstream

Search for package or bug name: Reporting problems