zip is vulnerable to Symlink Following
71
CVE Score
High
Symlink Following
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.
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 on Unix with entries that resolve through a pre-existing symlink in the destination.
0.5.9 - 9.0.0
Fixed in 9.0.1zip is vulnerable to Symlink Following in versions 0.5.9 - 9.0.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.