{"id":"CVE-2021-38511","aliases":["GHSA-62jx-8vmh-4mcw","RUSTSEC-2021-0080"],"url":"https://o3.security/vulnerability/CVE-2021-38511","summary":"Links in archive can create arbitrary directories","details":"When unpacking a tarball that contains a symlink the tar crate may create directories outside of the directory it's supposed to unpack into. The function errors when it's trying to create a file, but the folders are already created at this point.","published":"2021-08-10T23:15:07.237Z","modified":"2026-08-27T08:40:26.803540Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":2,"affectedPackages":[{"ecosystem":"crates.io","name":"tar","fixedVersion":"0.4.36"}],"fix":{"url":"https://github.com/alexcrichton/tar-rs/pull/259","label":"alexcrichton/tar-rs#259"},"references":[{"type":"EVIDENCE","url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/tar/RUSTSEC-2021-0080.md"},{"type":"EVIDENCE","url":"https://rustsec.org/advisories/RUSTSEC-2021-0080.html"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38511"},{"type":"WEB","url":"https://github.com/alexcrichton/tar-rs/issues/238"},{"type":"WEB","url":"https://github.com/alexcrichton/tar-rs/pull/259"},{"type":"PACKAGE","url":"https://github.com/alexcrichton/tar-rs"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-27T08:40:26.803540Z"}}