Fedora Account System
Red Hat Associate
Red Hat Customer
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process. 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.
This is a legitimate problem. It can be fixed by updating rust-zip to 9.0.5 or later (which, in turn, will require a nontrivial rust-zstd update), and updating ruff to 0.17.4 or later (not yet released, but coming soon) so that it uses v9 of the zip crate. See https://forge.fedoraproject.org/rust/backlog/issues/47 for details and general coordination.