{"cve":"CVE-2026-33056","nvd":{"published":"2026-03-20T08:16:11.603","modified":"2026-06-17T10:36:52.550","status":"Analyzed","description":"tar-rs is a tar archive reading/writing library for Rust. In versions 0.4.44 and below, when unpacking a tar archive, the tar crate's unpack_dir function uses fs::metadata() to check whether a path that already exists is a directory. Because fs::metadata() follows symbolic links, a crafted tarball containing a symlink entry followed by a directory entry with the same name causes the crate to treat the symlink target as a valid existing directory — and subsequently apply chmod to it. This allows an attacker to modify the permissions of arbitrary directories outside the extraction root. This issue has been fixed in version 0.4.45.","cvss_v4":{"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","score":5.1},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":6.5},"cwes":["CWE-61"],"references":["https://github.com/alexcrichton/tar-rs/commit/17b1fd84e632071cb8eef9d3709bf347bd266446","https://github.com/alexcrichton/tar-rs/security/advisories/GHSA-j4xf-2g29-59ph"],"products":["tar_project:tar"],"source":"nvd","synced_at":"2026-10-19T22:26:19.218427112+00:00"},"epss":{"cve":"CVE-2026-33056","score":0.00386,"percentile":0.32643,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-j4xf-2g29-59ph","url":"https://osv.dev/vulnerability/GHSA-j4xf-2g29-59ph","summary":"tar-rs `unpack_in` can chmod arbitrary directories by following symlinks","modified":"2026-09-10T03:50:39.751471613Z","packages":[{"ecosystem":"crates.io","name":"tar","purl":"pkg:cargo/tar","ranges":["<0.4.45"],"fixed":["0.4.45"]}]},{"id":"RUSTSEC-2026-0067","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0067","summary":"`unpack_in` can chmod arbitrary directories by following symlinks","modified":"2026-03-23T09:45:06.946281Z","packages":[{"ecosystem":"crates.io","name":"tar","purl":"pkg:cargo/tar","ranges":[">=0.0.0-0 <0.4.45"],"fixed":["0.4.45"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}