{"id":"RUSTSEC-2026-0368","revision":"ba82ab90afd149858429e1a7b323e4e3","records":[{"revision":"ba82ab90afd149858429e1a7b323e4e3","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2026-0368","aliases":["GHSA-4v9h-p7m9-rh26"],"title":"zip: `ZipArchive::extract` creates symbolic links whose attacker-controlled targets are outside the destination directory","description":"In `zip` 9.0.0-pre2, `ZipArchive::extract` creates a symbolic link from an archive entry after validating only the output entry path. The link target bytes are passed directly to the platform symlink API, so a malicious archive can create an entry inside the destination that resolves to an attacker-chosen path outside it. This behavior was verified on macOS and Linux. On either platform, a subsequent application read or write through that extracted entry accesses the external target with the extracting process's permissions.\n\nFor further details see: https://github.com/zip-rs/zip2/security/advisories/GHSA-4v9h-p7m9-rh26","state":0,"publishedAt":"2026-10-09T12:00:00+00:00","modifiedAt":"2026-10-16T23:30:02.3837506+00:00","affected":[{"ecosystem":"crates.io","name":"zip","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"},{"kind":"fixed","version":"9.0.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://crates.io/crates/zip","https://rustsec.org/advisories/RUSTSEC-2026-0368.html"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2026-0368","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2026-0368","identifiers":["RUSTSEC-2026-0368","GHSA-4v9h-p7m9-rh26"]},"retained":false,"historicalAffected":[]}],"coverage":[]}