From 8a112bc8662ec6bf62d8682d409d212cf83bb14c Mon Sep 17 00:00:00 2001 From: Eric Seppanen Date: Tue, 11 Aug 2026 03:12:22 -0700 Subject: [PATCH] add advisory for `zip` GHSA-94vh-gphv-8pm8 (#3099) --- crates/zip/RUSTSEC-0000-0000.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 crates/zip/RUSTSEC-0000-0000.md diff --git a/crates/zip/RUSTSEC-0000-0000.md b/crates/zip/RUSTSEC-0000-0000.md new file mode 100644 index 000000000..a89aedecc --- /dev/null +++ b/crates/zip/RUSTSEC-0000-0000.md @@ -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: