Ubuntu Security Notice
USN-8138-1
rust-tar vulnerability
Details
It was discovered that tar-rs incorrectly handled symlinks when unpacking a tar archive. If a user or automated system were tricked into processing a specially crafted tar archive, a remote attacker could use this issue to modify permissions of arbitrary directories outside the extraction root, and possibly escalate privileges.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:22.04:LTS | rust-tar | All versions before 0.4.37-3ubuntu0.1 (fixed in 0.4.37-3ubuntu0.1) |
| Ubuntu:24.04:LTS | rust-tar | All versions before 0.4.40-1ubuntu0.1 (fixed in 0.4.40-1ubuntu0.1) |
| Ubuntu:25.10 | rust-tar | All versions before 0.4.43-4ubuntu0.1 (fixed in 0.4.43-4ubuntu0.1) |