zip is vulnerable to Path Traversal
84
CVE Score
High
Path Traversal
ZipArchive::extract creates a symbolic link from an archive entry after validating only the output path, not the link target. The link target bytes from the archive pass directly to the platform symlink API, so a crafted entry can resolve to a path outside the destination directory. A later read or write through that extracted path then reaches the external target with the extracting process's permissions. The fix validates that the symlink target stays within the destination before creating the link.
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 that contain symbolic link entries.
1.3.0 - 8.6.0
Fixed in 9.0.0zip is vulnerable to Path Traversal in versions 1.3.0 - 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.