zip is vulnerable to Incorrect Permission Assignment for Critical Resource
73
CVE Score
High
Incorrect Permission Assignment for Critical Resource
Extraction preserves raw Unix permission bits from a ZIP entry's external_attributes, including the SUID and SGID bits, instead of masking them to safe bits. unix_mode() returns the raw mode and the extraction code path passes it directly to std::fs::set_permissions, with no mask equivalent to the one already applied on the write side. A privileged process that extracts a crafted archive can create setuid root or setgid files on disk, enabling local privilege escalation. The fix masks out the SUID, SGID, and sticky bits before applying extracted file permissions.
Upgrade the zip library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you extract untrusted ZIP archives as a privileged process, for example as root in an installer or CI/CD pipeline.
0.5.9 - 8.6.0
Fixed in 9.0.0zip is vulnerable to Incorrect Permission Assignment for Critical Resource in versions 0.5.9 - 8.6.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.