CVE-2026-85396

High

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.

SeverityHigh
CVSS7.5
Exploit probability—
ProductRubyzip
PublishedSep 3, 2026
First seenSep 3, 2026

How to fix

Affected products

ProductAffected versionsFixed in
rubyzip rubyzipv < 3.4.03.4.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.