Advisory

RUSTSEC-2026-0368

Also known as: GHSA-4v9h-p7m9-rh26

Summary

zip: ZipArchive::extract creates symbolic links whose attacker-controlled targets are outside the destination directory

Details

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.

For further details see: https://github.com/zip-rs/zip2/security/advisories/GHSA-4v9h-p7m9-rh26

Severity

Not rated by the source.

Dates

Published
2026-10-09 12:00 UTC
Modified
2026-10-16 23:30 UTC

Affected packages and fixes

zip

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 9.0.0 (semver)

Fixed versions

9.0.0

Fix

  • Fixed version 9.0.0
    cargo update -p zip --precise 9.0.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences