{"id":"RUSTSEC-2026-0068","revision":"3b35d37eabc0420c92a74b4e04491605","records":[{"revision":"3b35d37eabc0420c92a74b4e04491605","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2026-0068","aliases":["CVE-2026-33055","GHSA-gchp-q4r4-x4ff"],"title":"tar-rs incorrectly ignores PAX size headers if header size is nonzero","description":"Versions 0.4.44 and below of tar-rs have conditional logic that skips the PAX\nsize header in cases where the base header size is nonzero.\n\nAs part of [CVE-2025-62518][astral-cve], the [astral-tokio-tar]\nproject was changed to correctly honor PAX size headers in the case where it\nwas different from the base header. This is almost the inverse of the\nastral-tokio-tar issue.\n\nAny discrepancy in how tar parsers honor file size can be used to create\narchives that appear differently when unpacked by different archivers. In this\ncase, the tar-rs (Rust tar) crate is an outlier in checking for the header size\n— other tar parsers (including e.g. Go [`archive/tar`][go-tar]) unconditionally\nuse the PAX size override. This can affect anything that uses the tar crate to\nparse archives and expects to have a consistent view with other parsers.\n\nThis issue has been fixed in version 0.4.45.\n\n[astral-cve]: https://www.cve.org/CVERecord?id=CVE-2025-62518\n[astral-tokio-tar]: https://github.com/astral-sh/tokio-tar\n[go-tar]: https://pkg.go.dev/archive/tar","state":0,"publishedAt":"2026-03-19T12:00:00+00:00","modifiedAt":"2026-03-23T09:45:06.56224+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:L/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-0068.html"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2026-0068","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2026-0068","identifiers":["RUSTSEC-2026-0068","CVE-2026-33055","GHSA-gchp-q4r4-x4ff"]},"retained":false,"historicalAffected":[]}],"coverage":[]}