Description
An issue was discovered in the tar crate before 0.4.16 for Rust. Arbitrary file overwrite can occur via a symlink or hardlink in a TAR archive.
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.
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 25.10 | 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 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| crates.io | tar | < 0.4.16 | 0.4.16 | GHSA-2367-c296-3mp2 |
| crates.io | tar | >= 0.0.0-0, < 0.4.16 | 0.4.16 | RUSTSEC-2018-0002 |