CVE-2021-38511Tar Project Tar
High 7.5 No auth needed
Follow: this CVE · Tar Project · Tar Project Tar We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.4% probability of exploitation in 30 days · percentile 73
- Auth required
- No
- Published
- Aug 10, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-59
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
What happens
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.
What to do
- Apply the vendor's security update for Tar.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| crates.io | tar |
< 0.4.36 |
0.4.36 |
cargo update -p tar --precise 0.4.36 |
| crates.io | tar |
≥ 0.0.0-0 < 0.4.36 |
0.4.36 |
cargo update -p tar --precise 0.4.36 |
Per OSV / GitHub Advisories (GHSA-62jx-8vmh-4mcw, RUSTSEC-2021-0080). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| tar_project | tar | < 0.4.36 |
Official sources
References
Links published by the sources. Open them with care.
- raw.githubusercontent.com Exploit Third Party Advisory
- rustsec.org Exploit Third Party Advisory