Skip to content
OpenAdvisories
High · 7.5 CVE-2021-38511 EUVD-2021-1587GHSA-62jx-8vmh-4mcwRUSTSEC-2021-0080

Links in archive can create arbitrary directories

Published Aug 10, 2021 · Updated Aug 4, 2024 · Assigned by mitre

Description

An issue was discovered in the tar crate before 0.4.36 for Rust. When symlinks are present in a TAR archive, extraction can create arbitrary directories via .. traversal.

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.

ReleasePackageFixed inAdvisory
Debian 14 rust-tar 0.4.37-1 —
Debian 13 rust-tar 0.4.37-1 —
Debian 12 rust-tar 0.4.37-1 —
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS rust-tar No fix yet —
Ubuntu Pro 20.04 LTS rust-tar No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io tar < 0.4.36 0.4.36 GHSA-62jx-8vmh-4mcw
crates.io tar >= 0.0.0-0, < 0.4.36 0.4.36 RUSTSEC-2021-0080

References