{"id":"CVE-2026-70622","summary":"tar-rs 0.4.11 - 0.4.46 Symlink Escape via append_dir_all()","details":"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.","modified":"2026-08-12T04:19:23.966071836Z","published":"2026-08-10T17:35:23.683Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/70xxx/CVE-2026-70622.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-59"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/70xxx/CVE-2026-70622.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-70622"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/tar-rs-symlink-escape-via-append-dir-all"},{"type":"PACKAGE","url":"https://github.com/composefs/tar-rs"},{"type":"EVIDENCE","url":"https://gist.github.com/thesmartshadow/e7dac0bb690ee17b9cc142154cb11726"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/composefs/tar-rs","events":[{"introduced":"322ee2ea81a10b063b808b244cab33cd0b45ad1f"},{"last_affected":"fc459c149f83bf4daceaa52e17d351989002e1a9"}],"database_specific":{"extracted_events":[{"introduced":"0.4.11"},{"last_affected":"0.4.46"}],"source":"AFFECTED_FIELD"}}],"versions":["0.4.46","0.4.45","0.4.44","0.4.43","0.4.42","0.4.41","0.4.40","0.4.39","0.4.38","0.4.37","0.4.36","0.4.35","0.4.34","0.4.33","0.4.32","0.4.31","0.4.30","0.4.29","0.4.28","0.4.27","0.4.26","0.4.25","0.4.24","0.4.23","0.4.22","0.4.21","0.4.20","0.4.19","0.4.18","0.4.17","0.4.16","0.4.15","0.4.14","0.4.13","0.4.12","0.4.11"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-70622.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}