CVE-2026-70622: tar-rs 0.4.11 - 0.4.46 Symlink Escape via append_dir_all()
tar-rs versions 0.4.11 through 0.4.46 contain a symlink escape vulnerability in the Builder::appenddirall() 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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
tar-rsto a version that resolves this vulnerability.Fixed in 0.4.46
Event History
Frequently Asked Questions
What is the severity of CVE-2026-70622?
CVE-2026-70622 has a medium severity score of 6.5.
How does CVE-2026-70622 affect tar-rs applications?
CVE-2026-70622 allows attackers to exploit symlink escape vulnerabilities to read files outside the intended directory.
What versions of tar-rs are affected by CVE-2026-70622?
CVE-2026-70622 affects tar-rs versions 0.4.11 through 0.4.46.
How can I mitigate the risks of CVE-2026-70622?
To mitigate CVE-2026-70622, it is recommended to upgrade to a patched version of tar-rs.
What is the nature of the vulnerability in CVE-2026-70622?
CVE-2026-70622 is a symlink escape vulnerability that occurs in the Builder::append_dir_all() function.