# RUSTSEC-2026-0367: Insecure Preservation of SUID/SGID Bits during ZIP Extraction Leading to Potential Privilege Escalation

- Database: RustSec
- Published: 2026-10-09
- Modified: 2026-10-16

## Also published as

- [GHSA-VV5M-JXXH-4627](https://cve.now/GHSA-VV5M-JXXH-4627.md) (GitHub)

## Affected versions

- zip (crates.io): fixed in 9.0.0

## 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.

For further details see: https://github.com/zip-rs/zip2/security/advisories/GHSA-vv5m-jxxh-4627

## References

- https://crates.io/crates/zip
- https://rustsec.org/advisories/RUSTSEC-2026-0367.html

Page: https://cve.now/RUSTSEC-2026-0367

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
