Intel

AIKIDO-2026-476773

zip is vulnerable to Symlink Following

GHSA-4684-h2q9-2vcpPublished Oct 15, 2026
October 15, 2026

71

CVE Score

High

Symlink Following

Are you affected? Scan for Free

TL;DR

ZipStreamReader::extract and ZipArchive::extract apply Unix permissions from the central directory to an output path without re-validating that the path still points inside the destination or is not a symlink. ZipFile::safe_prepare_path only checks symlink targets that already exist on disk, so a symlink that does not yet exist when its final path component is created can remain unconfined until the later call that sets permissions. A crafted archive can use this gap to have the library apply extracted permission bits through a symlink to a file outside the destination. The fix applies permissions only to paths the library actually wrote.

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 on Unix with entries that resolve through a pre-existing symlink in the destination.

Package

Versions

0.5.9 - 9.0.0

Fixed in 9.0.1

Background info

zip is vulnerable to Symlink Following in versions 0.5.9 - 9.0.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