CVE-2021-38511 Links in archive can create arbitrary directories
HighCVSS 7.5
EPSS 1.4%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
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.
Upgrade path
12 packages: 5 fixed, 7 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/rust-tar(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/rust-tar(Ubuntu 24.04) | = 0.4.38-2; = 0.4.40-1; = 0.4.40-1ubuntu0.1; All versions | No fix listed | No fix yet |
| ubuntu/rust-tar(Ubuntu 25.10) | = 0.4.43-4; = 0.4.43-4ubuntu0.1; All versions | No fix listed | No fix yet |
| ubuntu/rust-tar(Ubuntu 26.04) | = 0.4.43-4; = 0.4.44-1; = 0.4.45-1; All versions | No fix listed | No fix yet |
| ubuntu/rust-tar(Ubuntu 26.10) | = 0.4.45-1; = 0.4.45-2; All versions | No fix listed | No fix yet |
| ubuntu/rust-tar(Ubuntu Pro 20.04) | = 0.4.26-1; = 0.4.26-1ubuntu0.1; All versions | No fix listed | No fix yet |
| ubuntu/rust-tar(Ubuntu Pro 22.04) | = 0.4.26-1; = 0.4.37-1; = 0.4.37-3; = 0.4.37-3ubuntu0.1 +3 more | No fix listed | No fix yet |
| crates.io tar(crates.io) | < 0.4.36; >= 0.0.0-0, < 0.4.36 | 0.4.36 | Fixed |
| debian/rust-tar(Debian 12) | < 0.4.37-1 | 0.4.37-1 | Fixed |
| debian/rust-tar(Debian 13) | < 0.4.37-1 | 0.4.37-1 | Fixed |
| debian/rust-tar(Debian 14) | < 0.4.37-1 | 0.4.37-1 | Fixed |
| tar project tar | < 0.4.36 | 0.4.36 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io tar(crates.io) | < 0.4.36 | 0.4.36 |
| crates.io tar(crates.io) | >= 0.0.0-0, < 0.4.36 | 0.4.36 |
| debian/rust-tar(Debian:12) | < 0.4.37-1 | 0.4.37-1 |
| debian/rust-tar(Debian:13) | < 0.4.37-1 | 0.4.37-1 |
| debian/rust-tar(Debian:14) | < 0.4.37-1 | 0.4.37-1 |
| ubuntu/rust-tar(Ubuntu:22.04) | All versions | No fix listed |
| tar project tar | < 0.4.36 | 0.4.36 |
| ubuntu/rust-tar(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/rust-tar(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/rust-tar(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/rust-tar(Ubuntu:Pro:20.04) | All versions | No fix listed |
| ubuntu/rust-tar(Ubuntu:Pro:20.04) | = 0.4.26-1 | No fix listed |
| ubuntu/rust-tar(Ubuntu:Pro:20.04) | = 0.4.26-1ubuntu0.1 | No fix listed |
| ubuntu/rust-tar(Ubuntu:Pro:22.04) | All versions | No fix listed |
| ubuntu/rust-tar(Ubuntu:Pro:22.04) | = 0.4.26-1 | No fix listed |
| ubuntu/rust-tar(Ubuntu:Pro:22.04) | = 0.4.37-1 | No fix listed |
| ubuntu/rust-tar(Ubuntu:Pro:22.04) | = 0.4.37-3 | No fix listed |
| ubuntu/rust-tar(Ubuntu:Pro:22.04) | = 0.4.37-3ubuntu0.1~esm1 | No fix listed |
| ubuntu/rust-tar(Ubuntu:Pro:22.04) | = 0.4.37-3ubuntu0.1 | No fix listed |
| ubuntu/rust-tar(Ubuntu:Pro:22.04) | = 0.4.37-3ubuntu0.1+esm1 | No fix listed |
| ubuntu/rust-tar(Ubuntu:24.04) | = 0.4.38-2 | No fix listed |
| ubuntu/rust-tar(Ubuntu:24.04) | = 0.4.40-1 | No fix listed |
| ubuntu/rust-tar(Ubuntu:24.04) | = 0.4.40-1ubuntu0.1 | No fix listed |
| ubuntu/rust-tar(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/rust-tar(Ubuntu:25.10) | = 0.4.43-4 | No fix listed |
Show 6 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/rust-tar(Ubuntu:25.10) | = 0.4.43-4ubuntu0.1 | No fix listed |
| ubuntu/rust-tar(Ubuntu:26.10) | = 0.4.45-1 | No fix listed |
| ubuntu/rust-tar(Ubuntu:26.10) | = 0.4.45-2 | No fix listed |
| ubuntu/rust-tar(Ubuntu:26.04) | = 0.4.43-4 | No fix listed |
| ubuntu/rust-tar(Ubuntu:26.04) | = 0.4.44-1 | No fix listed |
| ubuntu/rust-tar(Ubuntu:26.04) | = 0.4.45-1 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking
- raw.githubusercontent.com exploit issue-tracking third-party-advisory
- rustsec.org exploit issue-tracking third-party-advisory vendor-advisory
- github.com patch
- github.com
- github.com product
- crates.io product
- Debian Security Tracker CVE-2021-38511 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking
- bugs.debian.org issue-tracking