rubyzip is vulnerable to Path Traversal
61
CVE Score
Medium
Path Traversal
The rubyzip library checks extracted paths against a destination directory using a prefix match that does not enforce a directory boundary. A crafted ZIP archive can pass this check when the resolved output path shares a prefix with the destination directory, allowing files to be written outside the intended extraction folder. The same release also validates declared central-directory entry counts against header size and stops iterating on the first invalid entry to reduce denial-of-service impact from malformed archive metadata. The fix adds a directory-separator boundary to the containment check and hardens central-directory parsing.
Upgrade the rubyzip library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your application extracts entries from untrusted ZIP archives using the destination_directory option.
3.0.0 - 3.3.1
Fixed in 3.4.0rubyzip is vulnerable to Path Traversal in versions 3.0.0 - 3.3.1.
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.