Description
`zip` is a zip library for rust which supports reading and writing of simple ZIP files. In the archive extraction routine of affected versions of the `zip` crate starting with version 1.3.0 and prior to version 2.3.0, symbolic links earlier in the archive are allowed to be used for later files in the archive without validation of the final canonicalized path, allowing maliciously crafted archives to overwrite arbitrary files in the file system when extracted. Users who extract untrusted archive files using the following high-level API method may be affected and critical files on the system may be overwritten with arbitrary file permissions, which can potentially lead to code execution. Version 2.3.0 fixes the issue.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| zip-rs | zip2 | >= 1.3.0, < 2.3.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | rust-zip | No fix yet | — |
| Ubuntu 25.10 | rust-zip | No fix yet | — |
| Ubuntu 20.04 LTS | rust-zip | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | deno | 2.5.6-r0 | — |
| Wolfi rolling | geckodriver | 0.36.0-r1 | — |
| Wolfi rolling | nushell +1 | 0.102.0-r2 | — |
| Wolfi rolling | pixi +1 | 0.43.0-r0 | — |
| Wolfi rolling | wasm-pack | 0.13.1-r3 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| crates.io | zip | >= 1.3.0, < 2.3.0 | 2.3.0 | GHSA-94vh-gphv-8pm8 |