Read the docs
TI-2026-58604 Aliases CVE-2026-85396GHSA-47m2-wp7j-p9vc

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

Priority MEDIUM 44CWE-22Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
—
Confidentiality · integrity · availability
None · High · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00564 47th percentileScored 2026-11-07
Fix Fixed rubyzip (rubyzip): 3.4.0rubyzip (RubyGems): 3.4.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
rubyziprubyzipbefore 3.4.03.4.0Patch availableCNA
—rubyzip (RubyGems)before 3.4.03.4.0Patch availableGHSA-47m2-wp7j-p9vc
  • rubyzip Vendorrubyzip Affected before 3.4.0 Fixed in 3.4.0 Patch available CNA
  • rubyzip (RubyGems) Vendor— Affected before 3.4.0 Fixed in 3.4.0 Patch available GHSA-47m2-wp7j-p9vc

Remediation

  • Fix · CNA rubyzip (rubyzip) Fixed in 3.4.0
  • Fix · GHSA-47m2-wp7j-p9vc rubyzip (RubyGems) Fixed in 3.4.0 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat 3scale API Management Platform 2

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-85396
  2. 2026-10-03 Alias added: GHSA-47m2-wp7j-p9vc

References

Sources