{"id":"CVE-2021-38511","aliases":["DEBIAN-CVE-2021-38511","GHSA-62jx-8vmh-4mcw","RUSTSEC-2021-0080","UBUNTU-CVE-2021-38511"],"summary":"An issue was discovered in the tar crate before 0.4.36 for Rust.","published_at":"2020-09-10T00:00:00Z","modified_at":"2026-10-23T18:03:32.279367Z","products":[],"rating":{"severity":"high","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"SUSE","rating":"moderate"},{"source":"Ubuntu","rating":"medium"},{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.013919999822974205,"percentile":0.7294899821281433,"date":"2026-11-19T00:00:00Z"},"priority":9.5,"details":"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.","affected_stack":[],"affected_other":[{"ecosystem":"Debian:12","package":"rust-tar","purl":"pkg:deb/debian/rust-tar?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.37-1"}]}],"fixed":["0.4.37-1"],"provider":"osv","source":"DEBIAN-CVE-2021-38511","relation":"self"},{"ecosystem":"Debian:13","package":"rust-tar","purl":"pkg:deb/debian/rust-tar?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.37-1"}]}],"fixed":["0.4.37-1"],"provider":"osv","source":"DEBIAN-CVE-2021-38511","relation":"self"},{"ecosystem":"Debian:14","package":"rust-tar","purl":"pkg:deb/debian/rust-tar?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.37-1"}]}],"fixed":["0.4.37-1"],"provider":"osv","source":"DEBIAN-CVE-2021-38511","relation":"self"},{"ecosystem":"NVD","package":"tar_project:tar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.36"}]}],"fixed":["0.4.36"],"provider":"nvd","source":"CVE-2021-38511","relation":"self"},{"ecosystem":"Ubuntu:24.04:LTS","package":"rust-tar","purl":"pkg:deb/ubuntu/rust-tar?arch=source&distro=noble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.38-2","0.4.40-1","0.4.40-1ubuntu0.1"],"provider":"osv","source":"UBUNTU-CVE-2021-38511","relation":"self"},{"ecosystem":"Ubuntu:25.10","package":"rust-tar","purl":"pkg:deb/ubuntu/rust-tar?arch=source&distro=questing","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.43-4","0.4.43-4ubuntu0.1"],"provider":"osv","source":"UBUNTU-CVE-2021-38511","relation":"self"},{"ecosystem":"Ubuntu:26.04:LTS","package":"rust-tar","purl":"pkg:deb/ubuntu/rust-tar?arch=source&distro=resolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.43-4","0.4.44-1","0.4.45-1"],"provider":"osv","source":"UBUNTU-CVE-2021-38511","relation":"self"},{"ecosystem":"Ubuntu:26.10","package":"rust-tar","purl":"pkg:deb/ubuntu/rust-tar?arch=source&distro=stonking","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.45-1","0.4.45-2"],"provider":"osv","source":"UBUNTU-CVE-2021-38511","relation":"self"},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"rust-tar","purl":"pkg:deb/ubuntu/rust-tar?arch=source&distro=esm-infra%2Ffocal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.26-1","0.4.26-1ubuntu0.1"],"provider":"osv","source":"UBUNTU-CVE-2021-38511","relation":"self"},{"ecosystem":"Ubuntu:Pro:22.04:LTS","package":"rust-tar","purl":"pkg:deb/ubuntu/rust-tar?arch=source&distro=esm-apps%2Fjammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.26-1","0.4.37-1","0.4.37-3","0.4.37-3ubuntu0.1~esm1","0.4.37-3ubuntu0.1","0.4.37-3ubuntu0.1+esm1"],"provider":"osv","source":"UBUNTU-CVE-2021-38511","relation":"self"},{"ecosystem":"crates.io","package":"tar","purl":"pkg:cargo/tar","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.4.36"}]}],"fixed":["0.4.36"],"provider":"osv","source":"GHSA-62jx-8vmh-4mcw","relation":"self"},{"ecosystem":"crates.io","package":"tar","purl":"pkg:cargo/tar","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.4.36"}]}],"fixed":["0.4.36"],"provider":"osv","source":"RUSTSEC-2021-0080","relation":"self"}],"product_status":[{"vendor":"SUSE","product":"SUSE Enterprise Storage 7.1","cpe":"cpe:/o:suse:ses:7.1","status":"not_affected","packages":["cargo","cargo1.60","cargo1.61","cargo1.62","rls","rust","rust-gdb","rust1.60","rust1.61","rust1.62"],"package_count":10,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Desktop 15 SP3","cpe":"cpe:/o:suse:sled:15:sp3","status":"not_affected","packages":["cargo","cargo1.60","cargo1.61","cargo1.62","rls","rust","rust-gdb","rust1.60","rust1.61","rust1.62"],"package_count":10,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Desktop 15 SP4","cpe":"cpe:/o:suse:sled:15:sp4","status":"not_affected","packages":["cargo1.60","cargo1.61","cargo1.62","rust1.60","rust1.61","rust1.62"],"package_count":6,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Linux Enterprise High Performance Computing 15 SP3","cpe":"cpe:/o:suse:sle_hpc:15:sp3","status":"not_affected","packages":["cargo","cargo1.60","cargo1.61","cargo1.62","rls","rust","rust-gdb","rust1.60","rust1.61","rust1.62"],"package_count":10,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Linux Enterprise High Performance Computing 15 SP4","cpe":"cpe:/o:suse:sle_hpc:15:sp4","status":"not_affected","packages":["cargo1.60","cargo1.61","cargo1.62","rust1.60","rust1.61","rust1.62"],"package_count":6,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Module for Development Tools 15 SP3","cpe":"cpe:/o:suse:sle-module-development-tools:15:sp3","status":"not_affected","packages":["cargo","cargo1.60","cargo1.61","cargo1.62","rls","rust","rust-gdb","rust1.60","rust1.61","rust1.62"],"package_count":10,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Module for Development Tools 15 SP4","cpe":"cpe:/o:suse:sle-module-development-tools:15:sp4","status":"not_affected","packages":["cargo1.60","cargo1.61","cargo1.62","rust1.60","rust1.61","rust1.62"],"package_count":6,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 15 SP3","cpe":"cpe:/o:suse:sles:15:sp3","status":"not_affected","packages":["cargo","cargo1.60","cargo1.61","cargo1.62","rls","rust","rust-gdb","rust1.60","rust1.61","rust1.62"],"package_count":10,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 15 SP4","cpe":"cpe:/o:suse:sles:15:sp4","status":"not_affected","packages":["cargo1.60","cargo1.61","cargo1.62","rust1.60","rust1.61","rust1.62"],"package_count":6,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 15 SP3","cpe":"cpe:/o:suse:sles_sap:15:sp3","status":"not_affected","packages":["cargo","cargo1.60","cargo1.61","cargo1.62","rls","rust","rust-gdb","rust1.60","rust1.61","rust1.62"],"package_count":10,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 15 SP4","cpe":"cpe:/o:suse:sles_sap:15:sp4","status":"not_affected","packages":["cargo1.60","cargo1.61","cargo1.62","rust1.60","rust1.61","rust1.62"],"package_count":6,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Manager Proxy 4.2","cpe":"cpe:/o:suse:suse-manager-proxy:4.2","status":"not_affected","packages":["cargo","cargo1.60","cargo1.61","cargo1.62","rls","rust","rust-gdb","rust1.60","rust1.61","rust1.62"],"package_count":10,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Manager Proxy 4.3","cpe":"cpe:/o:suse:suse-manager-proxy:4.3","status":"not_affected","packages":["cargo1.60","cargo1.61","cargo1.62","rust1.60","rust1.61","rust1.62"],"package_count":6,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Manager Retail Branch Server 4.2","cpe":"cpe:/o:suse:suse-manager-retail-branch-server:4.2","status":"not_affected","packages":["cargo","cargo1.60","cargo1.61","cargo1.62","rls","rust","rust-gdb","rust1.60","rust1.61","rust1.62"],"package_count":10,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Manager Retail Branch Server 4.3","cpe":"cpe:/o:suse:suse-manager-retail-branch-server:4.3","status":"not_affected","packages":["cargo1.60","cargo1.61","cargo1.62","rust1.60","rust1.61","rust1.62"],"package_count":6,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Manager Server 4.2","cpe":"cpe:/o:suse:suse-manager-server:4.2","status":"not_affected","packages":["cargo","cargo1.60","cargo1.61","cargo1.62","rls","rust","rust-gdb","rust1.60","rust1.61","rust1.62"],"package_count":10,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Manager Server 4.3","cpe":"cpe:/o:suse:suse-manager-server:4.3","status":"not_affected","packages":["cargo1.60","cargo1.61","cargo1.62","rust1.60","rust1.61","rust1.62"],"package_count":6,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"not_affected","packages":["cincinnati-container"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2021-38511"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2021-38511","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2021-38511","license":"CC-BY-4.0","published_at":"2021-08-10T22:12:46Z","modified_at":"2024-08-04T01:44:23.549Z","summary":"An issue was discovered in the tar crate before 0.4.36 for Rust.","details":"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.","severity":[],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2021-0080.html"},{"type":"WEB","url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/tar/RUSTSEC-2021-0080.md"}]},{"provider":"csaf-suse","source_id":"CVE-2021-38511","relation":"self","url":"https://www.suse.com/security/cve/CVE-2021-38511/","license":"TLP:CLEAR, mirroring permitted","published_at":"2023-02-15T03:38:30Z","modified_at":"2025-09-29T01:24:01Z","summary":"SUSE CVE CVE-2021-38511","details":"SUSE CVE-2021-38511\n\nAn 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.","severity":[{"type":"SUSE","score":"moderate","source":"CVE-2021-38511"}],"affected":[],"product_status":[{"vendor":"SUSE","product":"SUSE Enterprise Storage 7.1","cpe":"cpe:/o:suse:ses:7.1","status":"not_affected","packages":["cargo","cargo1.60","cargo1.61","cargo1.62","rls","rust","rust-gdb","rust1.60","rust1.61","rust1.62"],"package_count":10,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Desktop 15 SP3","cpe":"cpe:/o:suse:sled:15:sp3","status":"not_affected","packages":["cargo","cargo1.60","cargo1.61","cargo1.62","rls","rust","rust-gdb","rust1.60","rust1.61","rust1.62"],"package_count":10,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Desktop 15 SP4","cpe":"cpe:/o:suse:sled:15:sp4","status":"not_affected","packages":["cargo1.60","cargo1.61","cargo1.62","rust1.60","rust1.61","rust1.62"],"package_count":6,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Linux Enterprise High Performance Computing 15 SP3","cpe":"cpe:/o:suse:sle_hpc:15:sp3","status":"not_affected","packages":["cargo","cargo1.60","cargo1.61","cargo1.62","rls","rust","rust-gdb","rust1.60","rust1.61","rust1.62"],"package_count":10,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Linux Enterprise High Performance Computing 15 SP4","cpe":"cpe:/o:suse:sle_hpc:15:sp4","status":"not_affected","packages":["cargo1.60","cargo1.61","cargo1.62","rust1.60","rust1.61","rust1.62"],"package_count":6,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Module for Development Tools 15 SP3","cpe":"cpe:/o:suse:sle-module-development-tools:15:sp3","status":"not_affected","packages":["cargo","cargo1.60","cargo1.61","cargo1.62","rls","rust","rust-gdb","rust1.60","rust1.61","rust1.62"],"package_count":10,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Module for Development Tools 15 SP4","cpe":"cpe:/o:suse:sle-module-development-tools:15:sp4","status":"not_affected","packages":["cargo1.60","cargo1.61","cargo1.62","rust1.60","rust1.61","rust1.62"],"package_count":6,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 15 SP3","cpe":"cpe:/o:suse:sles:15:sp3","status":"not_affected","packages":["cargo","cargo1.60","cargo1.61","cargo1.62","rls","rust","rust-gdb","rust1.60","rust1.61","rust1.62"],"package_count":10,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 15 SP4","cpe":"cpe:/o:suse:sles:15:sp4","status":"not_affected","packages":["cargo1.60","cargo1.61","cargo1.62","rust1.60","rust1.61","rust1.62"],"package_count":6,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 15 SP3","cpe":"cpe:/o:suse:sles_sap:15:sp3","status":"not_affected","packages":["cargo","cargo1.60","cargo1.61","cargo1.62","rls","rust","rust-gdb","rust1.60","rust1.61","rust1.62"],"package_count":10,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 15 SP4","cpe":"cpe:/o:suse:sles_sap:15:sp4","status":"not_affected","packages":["cargo1.60","cargo1.61","cargo1.62","rust1.60","rust1.61","rust1.62"],"package_count":6,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Manager Proxy 4.2","cpe":"cpe:/o:suse:suse-manager-proxy:4.2","status":"not_affected","packages":["cargo","cargo1.60","cargo1.61","cargo1.62","rls","rust","rust-gdb","rust1.60","rust1.61","rust1.62"],"package_count":10,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Manager Proxy 4.3","cpe":"cpe:/o:suse:suse-manager-proxy:4.3","status":"not_affected","packages":["cargo1.60","cargo1.61","cargo1.62","rust1.60","rust1.61","rust1.62"],"package_count":6,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Manager Retail Branch Server 4.2","cpe":"cpe:/o:suse:suse-manager-retail-branch-server:4.2","status":"not_affected","packages":["cargo","cargo1.60","cargo1.61","cargo1.62","rls","rust","rust-gdb","rust1.60","rust1.61","rust1.62"],"package_count":10,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Manager Retail Branch Server 4.3","cpe":"cpe:/o:suse:suse-manager-retail-branch-server:4.3","status":"not_affected","packages":["cargo1.60","cargo1.61","cargo1.62","rust1.60","rust1.61","rust1.62"],"package_count":6,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Manager Server 4.2","cpe":"cpe:/o:suse:suse-manager-server:4.2","status":"not_affected","packages":["cargo","cargo1.60","cargo1.61","cargo1.62","rls","rust","rust-gdb","rust1.60","rust1.61","rust1.62"],"package_count":10,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"},{"vendor":"SUSE","product":"SUSE Manager Server 4.3","cpe":"cpe:/o:suse:suse-manager-server:4.3","status":"not_affected","packages":["cargo1.60","cargo1.61","cargo1.62","rust1.60","rust1.61","rust1.62"],"package_count":6,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2021-38511"}],"references":[{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2021-38511"},{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://bugzilla.suse.com/1189409"}]},{"provider":"nvd","source_id":"CVE-2021-38511","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38511","severity":[],"affected":[{"ecosystem":"NVD","package":"tar_project:tar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.36"}]}],"fixed":["0.4.36"],"provider":"nvd","source":"CVE-2021-38511","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"DEBIAN-CVE-2021-38511","relation":"self","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2021-38511","published_at":"2021-08-10T23:15:07.237Z","modified_at":"2026-10-23T18:03:32.279367Z","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"DEBIAN-CVE-2021-38511"}],"affected":[{"ecosystem":"Debian:12","package":"rust-tar","purl":"pkg:deb/debian/rust-tar?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.37-1"}]}],"fixed":["0.4.37-1"],"provider":"osv","source":"DEBIAN-CVE-2021-38511","relation":"self"},{"ecosystem":"Debian:13","package":"rust-tar","purl":"pkg:deb/debian/rust-tar?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.37-1"}]}],"fixed":["0.4.37-1"],"provider":"osv","source":"DEBIAN-CVE-2021-38511","relation":"self"},{"ecosystem":"Debian:14","package":"rust-tar","purl":"pkg:deb/debian/rust-tar?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.37-1"}]}],"fixed":["0.4.37-1"],"provider":"osv","source":"DEBIAN-CVE-2021-38511","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2021-38511"}]},{"provider":"osv","source_id":"GHSA-62jx-8vmh-4mcw","relation":"self","url":"https://osv.dev/vulnerability/GHSA-62jx-8vmh-4mcw","license":"CC-BY-4.0","published_at":"2021-08-25T20:58:23Z","modified_at":"2023-11-08T04:06:27.878399Z","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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"GHSA-62jx-8vmh-4mcw"}],"affected":[{"ecosystem":"crates.io","package":"tar","purl":"pkg:cargo/tar","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.4.36"}]}],"fixed":["0.4.36"],"provider":"osv","source":"GHSA-62jx-8vmh-4mcw","relation":"self"}],"product_status":[],"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"}]},{"provider":"osv","source_id":"RUSTSEC-2021-0080","relation":"self","url":"https://osv.dev/vulnerability/RUSTSEC-2021-0080","license":"CC0-1.0","published_at":"2021-07-19T12:00:00Z","modified_at":"2026-07-17T16:00:04.671427Z","summary":"Links in archive can create arbitrary directories","details":"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!","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"RUSTSEC-2021-0080"}],"affected":[{"ecosystem":"crates.io","package":"tar","purl":"pkg:cargo/tar","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.4.36"}]}],"fixed":["0.4.36"],"provider":"osv","source":"RUSTSEC-2021-0080","relation":"self"}],"product_status":[],"references":[{"type":"PACKAGE","url":"https://crates.io/crates/tar"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2021-0080.html"},{"type":"REPORT","url":"https://github.com/alexcrichton/tar-rs/issues/238"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2021-38511","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2021-38511","license":"CC-BY-SA-4.0","published_at":"2021-08-10T23:15:00Z","modified_at":"2026-10-17T12:57:14.699752Z","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"UBUNTU-CVE-2021-38511"},{"type":"Ubuntu","score":"medium","source":"UBUNTU-CVE-2021-38511"}],"affected":[{"ecosystem":"Ubuntu:24.04:LTS","package":"rust-tar","purl":"pkg:deb/ubuntu/rust-tar?arch=source&distro=noble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.38-2","0.4.40-1","0.4.40-1ubuntu0.1"],"provider":"osv","source":"UBUNTU-CVE-2021-38511","relation":"self"},{"ecosystem":"Ubuntu:25.10","package":"rust-tar","purl":"pkg:deb/ubuntu/rust-tar?arch=source&distro=questing","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.43-4","0.4.43-4ubuntu0.1"],"provider":"osv","source":"UBUNTU-CVE-2021-38511","relation":"self"},{"ecosystem":"Ubuntu:26.04:LTS","package":"rust-tar","purl":"pkg:deb/ubuntu/rust-tar?arch=source&distro=resolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.43-4","0.4.44-1","0.4.45-1"],"provider":"osv","source":"UBUNTU-CVE-2021-38511","relation":"self"},{"ecosystem":"Ubuntu:26.10","package":"rust-tar","purl":"pkg:deb/ubuntu/rust-tar?arch=source&distro=stonking","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.45-1","0.4.45-2"],"provider":"osv","source":"UBUNTU-CVE-2021-38511","relation":"self"},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"rust-tar","purl":"pkg:deb/ubuntu/rust-tar?arch=source&distro=esm-infra%2Ffocal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.26-1","0.4.26-1ubuntu0.1"],"provider":"osv","source":"UBUNTU-CVE-2021-38511","relation":"self"},{"ecosystem":"Ubuntu:Pro:22.04:LTS","package":"rust-tar","purl":"pkg:deb/ubuntu/rust-tar?arch=source&distro=esm-apps%2Fjammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.26-1","0.4.37-1","0.4.37-3","0.4.37-3ubuntu0.1~esm1","0.4.37-3ubuntu0.1","0.4.37-3ubuntu0.1+esm1"],"provider":"osv","source":"UBUNTU-CVE-2021-38511","relation":"self"}],"product_status":[],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-38511"},{"type":"REPORT","url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/tar/RUSTSEC-2021-0080.md"},{"type":"REPORT","url":"https://rustsec.org/advisories/RUSTSEC-2021-0080.html"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-38511"}]},{"provider":"redhat-vex","source_id":"CVE-2021-38511","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2021-38511","license":"CC-BY-4.0","published_at":"2020-09-10T00:00:00Z","modified_at":"2021-08-18T21:35:07Z","summary":"tar-crate: links in archive can create arbitrary directories","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"CVE-2021-38511"},{"type":"Red Hat","score":"Moderate","source":"CVE-2021-38511"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"not_affected","packages":["cincinnati-container"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2021-38511"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-38511.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2021-38511"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1993525"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2021-38511"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38511"}]}],"references":[{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2021-0080.html"},{"type":"WEB","url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/tar/RUSTSEC-2021-0080.md"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2021-38511"},{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://bugzilla.suse.com/1189409"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2021-38511"},{"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":"PACKAGE","url":"https://crates.io/crates/tar"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-38511"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-38511"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-38511.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2021-38511"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1993525"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2021-38511","url":"https://www.cve.org/CVERecord?id=CVE-2021-38511","license":"CC-BY-4.0","modified_at":"2024-08-04T01:44:23.549Z","relation":"self"},{"provider":"csaf-suse","source_id":"CVE-2021-38511","url":"https://www.suse.com/security/cve/CVE-2021-38511/","license":"TLP:CLEAR, mirroring permitted","modified_at":"2025-09-29T01:24:01Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2021-38511","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38511","relation":"self"},{"provider":"osv","source_id":"DEBIAN-CVE-2021-38511","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2021-38511","modified_at":"2026-10-23T18:03:32.279367Z","relation":"self"},{"provider":"osv","source_id":"GHSA-62jx-8vmh-4mcw","url":"https://osv.dev/vulnerability/GHSA-62jx-8vmh-4mcw","license":"CC-BY-4.0","modified_at":"2023-11-08T04:06:27.878399Z","relation":"self"},{"provider":"osv","source_id":"RUSTSEC-2021-0080","url":"https://osv.dev/vulnerability/RUSTSEC-2021-0080","license":"CC0-1.0","modified_at":"2026-07-17T16:00:04.671427Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2021-38511","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2021-38511","license":"CC-BY-SA-4.0","modified_at":"2026-10-17T12:57:14.699752Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2021-38511","url":"https://access.redhat.com/security/cve/CVE-2021-38511","license":"CC-BY-4.0","modified_at":"2021-08-18T21:35:07Z","relation":"self"}]}
