{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/38092?format=json","vulnerability_id":"VCID-88p2-xuah-2ygr","summary":"Links in archive can create arbitrary directories\nWhen 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":[{"alias":"CVE-2021-38511"},{"alias":"GHSA-62jx-8vmh-4mcw"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/581070?format=json","purl":"pkg:cargo/tar@0.4.36","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:cargo/tar@0.4.36"},{"url":"http://public2.vulnerablecode.io/api/packages/938857?format=json","purl":"pkg:deb/debian/rust-tar@0.4.37-1?distro=trixie","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/rust-tar@0.4.37-1%3Fdistro=trixie"},{"url":"http://public2.vulnerablecode.io/api/packages/938852?format=json","purl":"pkg:deb/debian/rust-tar@0.4.38-1?distro=trixie","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-ehdy-7aak-r3bt"},{"vulnerability":"VCID-qj1y-b8m1-hyfm"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/rust-tar@0.4.38-1%3Fdistro=trixie"},{"url":"http://public2.vulnerablecode.io/api/packages/995264?format=json","purl":"pkg:deb/debian/rust-tar@0.4.38-1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-ehdy-7aak-r3bt"},{"vulnerability":"VCID-qj1y-b8m1-hyfm"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/rust-tar@0.4.38-1"},{"url":"http://public2.vulnerablecode.io/api/packages/938856?format=json","purl":"pkg:deb/debian/rust-tar@0.4.43-4?distro=trixie","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-ehdy-7aak-r3bt"},{"vulnerability":"VCID-qj1y-b8m1-hyfm"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/rust-tar@0.4.43-4%3Fdistro=trixie"},{"url":"http://public2.vulnerablecode.io/api/packages/938855?format=json","purl":"pkg:deb/debian/rust-tar@0.4.45-2?distro=trixie","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/rust-tar@0.4.45-2%3Fdistro=trixie"}],"affected_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/995263?format=json","purl":"pkg:deb/debian/rust-tar@0.4.26-1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-88p2-xuah-2ygr"},{"vulnerability":"VCID-ehdy-7aak-r3bt"},{"vulnerability":"VCID-qj1y-b8m1-hyfm"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/rust-tar@0.4.26-1"},{"url":"http://public2.vulnerablecode.io/api/packages/938854?format=json","purl":"pkg:deb/debian/rust-tar@0.4.26-1?distro=trixie","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-88p2-xuah-2ygr"},{"vulnerability":"VCID-ehdy-7aak-r3bt"},{"vulnerability":"VCID-qj1y-b8m1-hyfm"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/rust-tar@0.4.26-1%3Fdistro=trixie"}],"references":[{"reference_url":"https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2021-38511.json","reference_id":"","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"}],"url":"https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2021-38511.json"},{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2021-38511","reference_id":"","reference_type":"","scores":[{"value":"0.0034","scoring_system":"epss","scoring_elements":"0.56741","published_at":"2026-05-12T12:55:00Z"},{"value":"0.0034","scoring_system":"epss","scoring_elements":"0.56743","published_at":"2026-04-07T12:55:00Z"},{"value":"0.0034","scoring_system":"epss","scoring_elements":"0.56795","published_at":"2026-04-08T12:55:00Z"},{"value":"0.0034","scoring_system":"epss","scoring_elements":"0.56799","published_at":"2026-04-09T12:55:00Z"},{"value":"0.0034","scoring_system":"epss","scoring_elements":"0.56807","published_at":"2026-04-11T12:55:00Z"},{"value":"0.0034","scoring_system":"epss","scoring_elements":"0.56784","published_at":"2026-04-12T12:55:00Z"},{"value":"0.0034","scoring_system":"epss","scoring_elements":"0.56763","published_at":"2026-04-13T12:55:00Z"},{"value":"0.0034","scoring_system":"epss","scoring_elements":"0.56794","published_at":"2026-04-16T12:55:00Z"},{"value":"0.0034","scoring_system":"epss","scoring_elements":"0.56791","published_at":"2026-04-18T12:55:00Z"},{"value":"0.0034","scoring_system":"epss","scoring_elements":"0.56704","published_at":"2026-04-24T12:55:00Z"},{"value":"0.0034","scoring_system":"epss","scoring_elements":"0.56722","published_at":"2026-04-26T12:55:00Z"},{"value":"0.0034","scoring_system":"epss","scoring_elements":"0.56706","published_at":"2026-05-07T12:55:00Z"},{"value":"0.0034","scoring_system":"epss","scoring_elements":"0.5666","published_at":"2026-05-05T12:55:00Z"},{"value":"0.0034","scoring_system":"epss","scoring_elements":"0.56768","published_at":"2026-05-09T12:55:00Z"},{"value":"0.0034","scoring_system":"epss","scoring_elements":"0.56718","published_at":"2026-05-11T12:55:00Z"},{"value":"0.0034","scoring_system":"epss","scoring_elements":"0.5665","published_at":"2026-04-01T12:55:00Z"},{"value":"0.0034","scoring_system":"epss","scoring_elements":"0.56745","published_at":"2026-04-02T12:55:00Z"},{"value":"0.0034","scoring_system":"epss","scoring_elements":"0.56766","published_at":"2026-04-21T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2021-38511"},{"reference_url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-38511","reference_id":"","reference_type":"","scores":[],"url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-38511"},{"reference_url":"https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml","reference_id":"","reference_type":"","scores":[{"value":"5.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"}],"url":"https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml"},{"reference_url":"https://github.com/alexcrichton/tar-rs","reference_id":"","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/alexcrichton/tar-rs"},{"reference_url":"https://github.com/alexcrichton/tar-rs/issues/238","reference_id":"","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/alexcrichton/tar-rs/issues/238"},{"reference_url":"https://github.com/alexcrichton/tar-rs/pull/259","reference_id":"","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/alexcrichton/tar-rs/pull/259"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38511","reference_id":"","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-38511"},{"reference_url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/tar/RUSTSEC-2021-0080.md","reference_id":"","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/tar/RUSTSEC-2021-0080.md"},{"reference_url":"https://rustsec.org/advisories/RUSTSEC-2021-0080.html","reference_id":"","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://rustsec.org/advisories/RUSTSEC-2021-0080.html"},{"reference_url":"https://bugzilla.redhat.com/show_bug.cgi?id=1993525","reference_id":"1993525","reference_type":"","scores":[],"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1993525"},{"reference_url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=992173","reference_id":"992173","reference_type":"","scores":[],"url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=992173"},{"reference_url":"https://github.com/advisories/GHSA-62jx-8vmh-4mcw","reference_id":"GHSA-62jx-8vmh-4mcw","reference_type":"","scores":[{"value":"HIGH","scoring_system":"cvssv3.1_qr","scoring_elements":""}],"url":"https://github.com/advisories/GHSA-62jx-8vmh-4mcw"}],"weaknesses":[{"cwe_id":22,"name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory."}],"exploits":[],"severity_range_score":"5.5 - 8.9","exploitability":"0.5","weighted_severity":"8.0","risk_score":4.0,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-88p2-xuah-2ygr"}