Intel

AIKIDO-2026-306911

zip is vulnerable to Incorrect Permission Assignment for Critical Resource

GHSA-vv5m-jxxh-4627Published Oct 15, 2026
October 15, 2026

73

CVE Score

High

Incorrect Permission Assignment for Critical Resource

Are you affected? Scan for Free

TL;DR

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.

How do I fix this?

Upgrade the zip library to the patch version.

Who does this affect?

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.

Package

Versions

0.5.9 - 8.6.0

Fixed in 9.0.0

Background info

zip is vulnerable to Incorrect Permission Assignment for Critical Resource in versions 0.5.9 - 8.6.0.

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea