Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| composefs | tar-rs | 0.4.11 – ≤ 0.4.46 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | rust-tar | No fix yet | — |
| Debian 13 | rust-tar | No fix yet | — |
| Debian 12 | rust-tar | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | rust-tar | No fix yet | — |
| Ubuntu 26.04 LTS | rust-tar | No fix yet | — |
| Ubuntu 24.04 LTS | rust-tar | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | rust-tar | No fix yet | — |
| Ubuntu Pro 20.04 LTS | rust-tar | No fix yet | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | clamav +5 | No fix yet | — |
| Azure Linux 3 | rust | 1.75.0-30 | — |
References
- Researcher Disclosure technical-description exploit
- https://www.vulncheck.com/advisories/tar-rs-symlink-escape-via-append-dir-all third-party-advisory