{"id":"GHSA-4v9h-p7m9-rh26","aliases":["GHSA-4v9h-p7m9-rh26","RUSTSEC-2026-0368"],"related":[],"kind":"vulnerability","state":"published","title":"zip: `ZipArchive::extract` creates symbolic links whose attacker-controlled targets are outside the destination directory","summary":"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","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"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","format":"markdown","source":"rustsec"}],"published":"2026-10-09T12:00:00.000Z","modified":"2026-10-16T23:30:02.383Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"9.0.0"}],"ecosystem":"crates.io","package":"zip","purl":"pkg:cargo/zip","source":"rustsec"}],"references":[{"url":"https://crates.io/crates/zip","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0368.html","tags":["advisory"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0368","url":"https://rustsec.org/advisories/RUSTSEC-2026-0368.html","licence":"CC0-1.0","modified":"2026-10-16T23:30:02.383Z"}],"updatedAt":"2026-11-25T22:56:43.437Z"}