CVE-2025-29787

NameCVE-2025-29787
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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
rust-zip (PTS)bullseye0.5.8-2fixed
bookworm0.6.3-3fixed
sid, trixie2.5.0-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
rust-zipsource(unstable)(not affected)

Notes

- rust-zip <not-affected> (Vulnerable code never in Debian released revision)
https://github.com/zip-rs/zip2/security/advisories/GHSA-94vh-gphv-8pm8
Introduced with: https://github.com/zip-rs/zip2/commit/633a6733e6ebb19de9745d6679935c2b168821d0 (v1.3.)
Fixed by: https://github.com/zip-rs/zip2/commit/a2e062f37066c3b12860a32eb1cb44856cfb7afe (v2.3.0)

Search for package or bug name: Reporting problems