CVE-2026-85396: rubyzip path traversal vulnerability
Affects rubyzipSource GCVE Database
Not known to be exploited · CVSS 7.5 High : upgrade to 3.4.0 soon.
Data as of 26 Oct 2026, 12:55 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 46% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 3.4.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 3 Sep 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade rubyzip to 3.4.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| RubyGemsrubyzip | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- nvd.nist.gov/vuln/detail/CVE-2026-85396 (opens in a new tab)
- github.com/rubyzip/rubyzip/commit/17edfbf4423b83211b075acc23a7d8640da63449 (opens in a new tab)
- github.com/geo-chen/oss/blob/main/rubyzip.md (opens in a new tab)
- github.com/rubysec/ruby-advisory-db/blob/master/gems/rubyzip/CVE-2026-85396.yml (opens in a new tab)
- github.com/rubyzip/rubyzip (opens in a new tab)
- github.com/rubyzip/rubyzip/blob/v3.3.1/lib/zip/entry.rb (opens in a new tab)
- github.com/rubyzip/rubyzip/releases/tag/v3.4.0 (opens in a new tab)
- vulncheck.com/advisories/rubyzip-before-3.4.0-path-traversal-in-zip-entry-extract-via-sibling-directory-prefix (opens in a new tab)