{"id":"GHSA-62jx-8vmh-4mcw","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.","aliases":["CVE-2021-38511","RUSTSEC-2021-0080"],"modified":"2023-11-08T04:06:27.878399Z","published":"2021-08-25T20:58:23Z","database_specific":{"nvd_published_at":"2021-08-10T23:15:00Z","cwe_ids":["CWE-22"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2021-08-18T20:08:23Z"},"references":[{"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"},{"type":"WEB","url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/tar/RUSTSEC-2021-0080.md"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2021-0080.html"}],"affected":[{"package":{"name":"tar","ecosystem":"crates.io","purl":"pkg:cargo/tar"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.4.36"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-62jx-8vmh-4mcw/GHSA-62jx-8vmh-4mcw.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"}]}