GHSA-vv5m-jxxh-4627
HIGH 7.3CVSS 3.1Insecure Preservation of SUID/SGID Bits during ZIP Extraction Leading to Potential Privilege Escalation
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.
For further details see: https://github.com/zip-rs/zip2/security/advisories/GHSA-vv5m-jxxh-4627
- Published
- 9 Oct 2026
- Last modified
- 16 Oct 2026
- Also known as
- RUSTSEC-2026-0367
- Sources
- OSV RUSTSEC-2026-0367JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | RustSec | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | zip | >= 0.0.0-0, < 9.0.0 | 9.0.0 |
References
- https://crates.io/crates/zip · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2026-0367.html · ADVISORY
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 9 Oct 2026)