
CVE catalog
CVE-2026-70622
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
- Severity
- High · CVSS 7.1
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.46% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | rust-tar | sid | 0.4.46-1 | vulnerable |
| Debian | rust-tar | forky | 0.4.46-1 | vulnerable |
| Debian | rust-tar | trixie | 0.4.43-4 | vulnerable |
| Debian | rust-tar | bookworm | 0.4.38-1 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | rust-tar | source | sid | (unfixed) | unimportant | Not reported | [1144402] |
| Debian | rust-tar | source | forky | (unfixed) | unimportant | Not reported | [1144402] |
| Debian | rust-tar | source | trixie | (unfixed) | unimportant | Not reported | [1144402] |
| Debian | rust-tar | source | bookworm | (unfixed) | unimportant | Not reported | [1144402] |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [librust-tar-dev]Affected
Source package: [rust-tar]
Details (2)
0.4.38-1· amd64 · bookwormAffected
nvd · rust-tar · debian · bookworm; nvd · rust-tar · debian · 12
0.4.38-1· arm64 · bookwormAffected
nvd · rust-tar · debian · bookworm; nvd · rust-tar · debian · 12
- [libstd-rust-1.63]Affected
Source package: [rustc]
Details (2)
1.63.0+dfsg1-2· amd64 · bookwormAffected
nvd · rustc · debian · bookworm
1.63.0+dfsg1-2· arm64 · bookwormAffected
nvd · rustc · debian · bookworm
- [libstd-rust-dev]Affected
Source package: [rustc]
Details (2)
1.63.0+dfsg1-2· amd64 · bookwormAffected
nvd · rustc · debian · bookworm
1.63.0+dfsg1-2· arm64 · bookwormAffected
nvd · rustc · debian · bookworm
- [libstd-rust-dev-wasm32]Affected
Source package: [rustc]
Details (2)
1.63.0+dfsg1-2· all · bookwormAffected
nvd · rustc · debian · bookworm
1.63.0+dfsg1-2· all · bookwormAffected
nvd · rustc · debian · bookworm
- [libstd-rust-dev-windows]Affected
Source package: [rustc]
Details (1)
1.63.0+dfsg1-2· amd64 · bookwormAffected
nvd · rustc · debian · bookworm
- [rust-all]Affected
Source package: [rustc]
Details (2)
1.63.0+dfsg1-2· all · bookwormAffected
nvd · rustc · debian · bookworm
1.63.0+dfsg1-2· all · bookwormAffected
nvd · rustc · debian · bookworm
- [rustc]Affected
Details (2)
1.63.0+dfsg1-2· amd64 · bookwormAffected
nvd · rustc · debian · bookworm
1.63.0+dfsg1-2· arm64 · bookwormAffected
nvd · rustc · debian · bookworm
- [rust-clippy]Affected
Source package: [rustc]
Details (2)
1.63.0+dfsg1-2· amd64 · bookwormAffected
nvd · rustc · debian · bookworm
1.63.0+dfsg1-2· arm64 · bookwormAffected
nvd · rustc · debian · bookworm
- [rust-doc]Affected
Source package: [rustc]
Details (2)
1.63.0+dfsg1-2· all · bookwormAffected
nvd · rustc · debian · bookworm
1.63.0+dfsg1-2· all · bookwormAffected
nvd · rustc · debian · bookworm
- [rustfmt]Affected
Source package: [rustc]
Details (2)
1.63.0+dfsg1-2· amd64 · bookwormAffected
nvd · rustc · debian · bookworm
1.63.0+dfsg1-2· arm64 · bookwormAffected
nvd · rustc · debian · bookworm
- [rust-gdb]Affected
Source package: [rustc]
Details (2)
1.63.0+dfsg1-2· all · bookwormAffected
nvd · rustc · debian · bookworm
1.63.0+dfsg1-2· all · bookwormAffected
nvd · rustc · debian · bookworm
- [rust-lldb]Affected
Source package: [rustc]
Details (2)
1.63.0+dfsg1-2· all · bookwormAffected
nvd · rustc · debian · bookworm
1.63.0+dfsg1-2· all · bookwormAffected
nvd · rustc · debian · bookworm
- [rust-src]Affected
Source package: [rustc]
Details (2)
1.63.0+dfsg1-2· all · bookwormAffected
nvd · rustc · debian · bookworm
1.63.0+dfsg1-2· all · bookwormAffected
nvd · rustc · debian · bookworm
[Debian 13 (Trixie)]
- [librust-tar-dev]Affected
Source package: [rust-tar]
Details (2)
0.4.43-4· amd64 · trixieAffected
nvd · rust-tar · debian · 13
0.4.43-4· arm64 · trixieAffected
nvd · rust-tar · debian · 13
Observed:
References
- [https://gist.github.com/thesmartshadow/e7dac0bb690ee17b9cc142154cb11726]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-70622]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-70622]
- [https://security-tracker.debian.org/tracker/CVE-2026-70622]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-70622.json]
- [https://www.vulncheck.com/advisories/tar-rs-symlink-escape-via-append-dir-all]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]