# CVE-2021-38511

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability: affected before 0.4.36 (CNA); fix release not confirmed
- Status: published
- Published: 2021-08-10 · Modified: 2024-08-04
- Aliases: UBUNTU-CVE-2021-38511, DEBIAN-CVE-2021-38511, GHSA-62jx-8vmh-4mcw, RUSTSEC-2021-0080
- Record: https://cvemate.com/vulnerability/CVE-2021-38511 · JSON: https://cvemate.com/vulnerability/CVE-2021-38511/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- EPSS: 1.392%, percentile 73.301%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 2 (reference)

## Affected

- Crates.Io tar (Crates.Io): \< 0.4.36 \| ≥ 0.0.0-0, \< 0.4.36
- debian rust-tar (Debian): \< 0.4.37-1
- ubuntu rust-tar (Ubuntu): All versions (No fix recorded)
- tar\_project tar: \< 0.4.36

## References

- <https://rustsec.org/advisories/RUSTSEC-2021-0080.html>
- <https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/tar/RUSTSEC-2021-0080.md>
- <https://ubuntu.com/security/CVE-2021-38511>
- <https://www.cve.org/CVERecord?id=CVE-2021-38511>
- <https://security-tracker.debian.org/tracker/CVE-2021-38511>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-38511>
- <https://github.com/alexcrichton/tar-rs/issues/238>
- <https://github.com/alexcrichton/tar-rs/pull/259>
- <https://github.com/alexcrichton/tar-rs>
- <https://crates.io/crates/tar>

---

Data as of 2026-12-05T08:38:50.927Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
