CVE-2026-85396
Description
rubyzip versions before 3.4.0 contain a path traversal vulnerability in Zip::Entry#extract that fails to properly validate extraction paths using prefix comparison without trailing separators. Attackers can craft archive entries with names like ../upload_backup/owned.sh to write files outside the intended extraction directory into sibling paths sharing the destination prefix.
How to fix
- rubyzip rubyzip3.4.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rubyzip rubyzip | v < 3.4.0 | 3.4.0 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.