{"schemaVersion":3,"id":"CVE-2021-38511","aliases":["UBUNTU-CVE-2021-38511","DEBIAN-CVE-2021-38511","GHSA-62jx-8vmh-4mcw","RUSTSEC-2021-0080"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-08-10T22:12:46.000Z","modified":"2024-08-04T01:44:23.549Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","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","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","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","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Crates.io","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","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","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","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01392,"percentile":0.71942,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01392},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01392,"percentile":0.71942}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01392,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01392,"percentile":0.71942}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_AB7D883AFF175ED7","name":"Exploit Reference (rustsec.org)","source":"reference","url":"https://rustsec.org/advisories/RUSTSEC-2021-0080.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_BA4D94F5EFBE8F13","name":"Exploit Reference (raw.githubusercontent.com)","source":"reference","url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/tar/RUSTSEC-2021-0080.md","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":2,"weaknesses":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access ('Link Following')","description":"The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/59.html"}],"affected":[{"vendor":"Crates.Io","product":"tar","name":"tar","label":"tar","ecosystem":"Crates.Io","cpePart":null,"purl":"pkg:cargo/tar","purlType":"cargo","versions":[{"text":"< 0.4.36","noFixRecorded":false,"fixedIn":null},{"text":"≥ 0.0.0-0, < 0.4.36","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.4.36 | ≥ 0.0.0-0, < 0.4.36","eol":null,"hubHref":null},{"vendor":"debian","product":"rust-tar","name":"rust-tar","label":"rust-tar","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/rust-tar","purlType":"deb","versions":[{"text":"< 0.4.37-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.4.37-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"rust-tar","name":"rust-tar","label":"rust-tar","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/rust-tar","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"tar_project","product":"tar","name":"tar","label":"tar","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.4.36","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.4.36","eol":null,"hubHref":"/vendor/tar_project/tar"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0080.html","label":"rustsec.org/advisories/RUSTSEC-2021-0080.html","hostname":"rustsec.org","tags":["X Refsource MISC","REPORT","WEB","Advisory","Exploit","Third Party Advisory"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/tar/RUSTSEC-2021-0080.md","label":"raw.githubusercontent.com/rustsec/advisory-db/main/crates/tar/RUSTSEC-2021-0080.md","hostname":"raw.githubusercontent.com","tags":["X Refsource MISC","REPORT","WEB","Exploit","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-38511","label":"ubuntu.com/security/CVE-2021-38511","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-38511","label":"www.cve.org/CVERecord?id=CVE-2021-38511","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-38511","label":"security-tracker.debian.org/tracker/CVE-2021-38511","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38511","label":"nvd.nist.gov/vuln/detail/CVE-2021-38511","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/alexcrichton/tar-rs/issues/238","label":"github.com/alexcrichton/tar-rs/issues/238","hostname":"github.com","tags":["WEB","REPORT"]},{"url":"https://github.com/alexcrichton/tar-rs/pull/259","label":"github.com/alexcrichton/tar-rs/pull/259","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/alexcrichton/tar-rs","label":"github.com/alexcrichton/tar-rs","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://crates.io/crates/tar","label":"crates.io/crates/tar","hostname":"crates.io","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-08-10T22:12:46.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T01:44:23.549Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":40,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T12:47:15.153Z","stale":false,"partial":false}}