rubyzip before 3.4.0 Path Traversal in Zip::Entry#extract via Sibling-Directory Prefix
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
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| rubyzip | rubyzip | before 3.4.0 | 3.4.0 | Patch available | CNA |
| — | rubyzip (RubyGems) | before 3.4.0 | 3.4.0 | Patch available | GHSA-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
- 2026-10-02 Threatist record created from CVE-2026-85396
- 2026-10-03 Alias added: GHSA-47m2-wp7j-p9vc
References
Patch 1
Sources
- CVE-2026-85396 · CVE Program
- CVE-2026-85396 · NVD
- FIRST EPSS
- GHSA-47m2-wp7j-p9vc · GitHub Advisory Database · CC BY 4.0
- CVE-2026-85396 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences