Path Traversal Vulnerability in rubyzip by Ruby-zip
CVE-2026-85396
8.7HIGH
What is CVE-2026-85396?
The rubyzip library versions prior to 3.4.0 are susceptible to a path traversal vulnerability in the Zip::Entry#extract function. This flaw occurs due to insufficient validation of paths during the extraction process. Malicious actors can exploit this by crafting ZIP archive entries with names designed to traverse directories, such as '../upload_backup/owned.sh', allowing them to write files to unintended locations outside the specified extraction directory. This poses a significant risk, as it can lead to unauthorized access and manipulation of sensitive files.
Affected Version(s)
rubyzip 0 < 3.4.0
rubyzip 3.4.0
