Affected versions
Ubuntu20.04:LTS/rust-zip
- Affected versions
- * || =0.5.0-1 || =0.5.3-1 || =0.5.3-2
- Fixed version
- Not reported
Ubuntu22.04:LTS/rust-zip
- Affected versions
- * || =0.5.8-2 || =0.5.13-1
- Fixed version
- Not reported
Ubuntu24.04:LTS/rust-zip
- Affected versions
- * || =0.6.6-1 || =0.6.6-2
- Fixed version
- Not reported
Ubuntu26.04:LTS/rust-zip
- Affected versions
- * || =2.5.0-1 || =5.1.1-2 || =5.1.1-3
- Fixed version
- Not reported
Ubuntu26.10/rust-zip
- Affected versions
- * || =5.1.1-3 || =5.1.1+dfsg-1
- Fixed version
- Not reported
Description
zip is a zip library for Rust that supports reading and writing simple ZIP files. Through 9.0.4, ZipArchive treats Central Directory File Header filenames as authoritative while ZipStreamReader extracts using Local File Header filenames without reconciling the duplicate metadata in src/read/stream.rs. A crafted archive can therefore appear benign to a component that inspects the central directory but cause a streaming extractor to write a different attacker-selected path and content, potentially overwriting files used by a downstream service. This issue is fixed in version 9.0.5.
Links
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1152227
- https://github.com/cveproject/cvelistv5/tree/main/cves/2026/115xxx/cve-2026-115905.json
- https://github.com/zip-rs/zip2/commit/8068ab480ccf8daa7411424e365fcdbe6d09443e
- https://github.com/zip-rs/zip2/releases/tag/v9.0.5
- https://github.com/zip-rs/zip2/security/advisories/ghsa-m665-v7pm-7grj
- https://nvd.nist.gov/vuln/detail/cve-2026-115905
- https://security-tracker.debian.org/tracker/cve-2026-115905
- https://ubuntu.com/security/CVE-2026-115905
- https://www.cve.org/CVERecord?id=CVE-2026-115905

