Skip to content
CVE PROGRAM SOURCE RECORD8.7 High

CVE-2026-85396

rubyzip before 3.4.0 Path Traversal in Zip::Entry#extract via Sibling-Directory Prefix

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

rubyzip rubyzip

Default version status: unaffected

  • 0 to < 3.4.0affected
  • 3.4.0unaffected
pkg:gem/rubyzip

References