{"id":"RUSTSEC-2026-0367","revision":"177031be20bc45b894ff6f0efae4d1b7","records":[{"revision":"177031be20bc45b894ff6f0efae4d1b7","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2026-0367","aliases":["GHSA-vv5m-jxxh-4627"],"title":" Insecure Preservation of SUID/SGID Bits during ZIP Extraction Leading to Potential Privilege Escalation","description":"The `zip` crate preserves privileged Unix permission bits (SUID, SGID, and sticky bits) from ZIP `external_attributes` during extraction, instead of masking them to safe permission bits. If a privileged process (for example, `root` in an installer, CI/CD pipeline, or container build) extracts an attacker-controlled ZIP archive using `ZipArchive::extract()` or the stream extraction API, files can be created as setuid-root or setgid. This behavior allows the creation of SUID/SGID files during extraction, which can lead to local privilege escalation depending on the execution environment.\n\nFor further details see: https://github.com/zip-rs/zip2/security/advisories/GHSA-vv5m-jxxh-4627","state":0,"publishedAt":"2026-10-09T12:00:00+00:00","modifiedAt":"2026-10-16T23:30:02.3921726+00:00","affected":[{"ecosystem":"crates.io","name":"zip","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"},{"kind":"fixed","version":"9.0.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":null,"severity":null}],"references":["https://crates.io/crates/zip","https://rustsec.org/advisories/RUSTSEC-2026-0367.html"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2026-0367","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2026-0367","identifiers":["RUSTSEC-2026-0367","GHSA-vv5m-jxxh-4627"]},"retained":false,"historicalAffected":[]}],"coverage":[]}