Vulnerability advisory
RUSTSEC-2025-0168
Incorrect path canonicalization during Archive Extraction Leading to Arbitrary File Write
Also known as CVE-2025-29787GHSA-94vh-gphv-8pm8
Severity
- CVSS 4.0
CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:L/VI:H/VA:N/SC:H/SI:H/SA:H
Affected versions
zip crates.io
All zip advisories →| Affected | Fixed in |
|---|---|
1.3.0 to before 2.3.0 | 2.3.0Advisories → |
Description
In the archive extraction routine of affected versions of the zip crate, 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.
For more details, see the GitHub-hosted security advisory: https://github.com/zip-rs/zip2/security/advisories/GHSA-94vh-gphv-8pm8