{"id":"RUSTSEC-2026-0067","revision":"73f91fa682a048d3b3b641a3d9beed2d","records":[{"revision":"73f91fa682a048d3b3b641a3d9beed2d","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2026-0067","aliases":["CVE-2026-33056","GHSA-j4xf-2g29-59ph"],"title":"`unpack_in` can chmod arbitrary directories by following symlinks","description":"In versions 0.4.44 and below of tar-rs, when unpacking a tar archive, the tar\ncrate's `unpack_dir` function uses [`fs::metadata()`][fs-metadata] to check\nwhether a path that already exists is a directory. Because `fs::metadata()`\nfollows symbolic links, a crafted tarball containing a symlink entry followed\nby a directory entry with the same name causes the crate to treat the symlink\ntarget as a valid existing directory — and subsequently apply chmod to it. This\nallows an attacker to modify the permissions of arbitrary directories outside\nthe extraction root.\n\nThis issue has been fixed in version 0.4.45.\n\n[fs-metadata]: https://doc.rust-lang.org/std/fs/fn.metadata.html","state":0,"publishedAt":"2026-03-19T12:00:00+00:00","modifiedAt":"2026-03-23T09:45:06.946281+00:00","affected":[{"ecosystem":"crates.io","name":"tar","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"},{"kind":"fixed","version":"0.4.45"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"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":null,"severity":null}],"references":["https://crates.io/crates/tar","https://rustsec.org/advisories/RUSTSEC-2026-0067.html"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2026-0067","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2026-0067","identifiers":["RUSTSEC-2026-0067","CVE-2026-33056","GHSA-j4xf-2g29-59ph"]},"retained":false,"historicalAffected":[]}],"coverage":[]}