{"id":"UBUNTU-CVE-2026-70622","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-13T03:01:04.535136245Z","published":"2026-08-10T18:18:00Z","upstream":["CVE-2026-70622"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-70622"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-70622"},{"type":"REPORT","url":"https://gist.github.com/thesmartshadow/e7dac0bb690ee17b9cc142154cb11726"},{"type":"REPORT","url":"https://www.vulncheck.com/advisories/tar-rs-symlink-escape-via-append-dir-all"}],"affected":[{"package":{"name":"rust-tar","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/rust-tar?arch=source&distro=esm-infra%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.26-1","0.4.26-1ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-tar+default-dev","binary_version":"0.4.26-1ubuntu0.1"},{"binary_name":"librust-tar-dev","binary_version":"0.4.26-1ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-70622.json"}},{"package":{"name":"rust-tar","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/rust-tar?arch=source&distro=esm-apps%2Fjammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.26-1","0.4.37-1","0.4.37-3","0.4.37-3ubuntu0.1~esm1","0.4.37-3ubuntu0.1","0.4.37-3ubuntu0.1+esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-tar+default-dev","binary_version":"0.4.37-3ubuntu0.1+esm1"},{"binary_name":"librust-tar-dev","binary_version":"0.4.37-3ubuntu0.1+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-70622.json"}},{"package":{"name":"rust-tar","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/rust-tar?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.38-2","0.4.40-1","0.4.40-1ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-tar-dev","binary_version":"0.4.40-1ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-70622.json"}},{"package":{"name":"rust-tar","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/rust-tar?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.43-4","0.4.44-1","0.4.45-1"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-tar-dev","binary_version":"0.4.45-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-70622.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"},{"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"},{"type":"Ubuntu","score":"medium"}]}