{"id":"GHSA-vv5m-jxxh-4627","aliases":["GHSA-vv5m-jxxh-4627","RUSTSEC-2026-0367"],"related":[],"kind":"vulnerability","state":"published","title":"Insecure Preservation of SUID/SGID Bits during ZIP Extraction Leading to Potential Privilege Escalation","summary":"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","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"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","format":"markdown","source":"rustsec"}],"published":"2026-10-09T12:00:00.000Z","modified":"2026-10-16T23:30:02.392Z","severity":{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":7.3,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"9.0.0"}],"ecosystem":"crates.io","package":"zip","purl":"pkg:cargo/zip","source":"rustsec"}],"references":[{"url":"https://crates.io/crates/zip","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0367.html","tags":["advisory"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0367","url":"https://rustsec.org/advisories/RUSTSEC-2026-0367.html","licence":"CC0-1.0","modified":"2026-10-16T23:30:02.392Z"}],"updatedAt":"2026-11-25T22:56:43.437Z"}