add advisory for zip GHSA-94vh-gphv-8pm8 (#3099)

This commit is contained in:
Eric Seppanen
2026-08-11 12:12:22 +02:00
committed by GitHub
parent 2ae3ea41b8
commit 8a112bc866
+25
View File
@@ -0,0 +1,25 @@
```toml
[advisory]
id = "RUSTSEC-0000-0000"
package = "zip"
date = "2025-03-16"
url = "https://github.com/zip-rs/zip2/security/advisories/GHSA-94vh-gphv-8pm8"
cvss = "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"
keywords = ["file-overwrite", "symlink", "path-traversal"]
aliases = ["CVE-2025-29787", "GHSA-94vh-gphv-8pm8"]
license = "CC-BY-4.0"
[affected.functions]
"zip::unstable::stream::ZipStreamReader::extract" = ["< 2.3.0, >= 1.3.0"]
"zip::read::ZipArchive::extract" = ["< 2.3.0, >= 1.3.0"]
[versions]
patched = [">= 2.3.0"]
unaffected = ["< 1.3.0"]
```
# Incorrect path canonicalization during Archive Extraction Leading to Arbitrary File Write
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>