CVE-2026-85396 json
rubyzip before 3.4.0 Path Traversal in Zip::Entry#extract via Sibling-Directory Prefix
published 2026-09-03 2 mo ago modified 2026-09-25 44 d ago also GHSA-47m2-wp7j-p9vc , EUVD-2026-70673
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 47%
- public exploits
- 0
- none known
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.
Patch / fix
- rubygems rubyzip 3.4.0
- rubyzip rubyzip 3.4.0
- ruby-zip Debian 14 3.4.0+dfsg-1
debian advisories DEBIAN-CVE-2026-85396
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-85396 updated cvss 7.5
rubyzip: rubyzip: Arbitrary file write via path traversal
-
Red Hat 3scale API Management Platform 2 3scale-amp2/system-rhel8, 3scale-amp2/system-rhel9, 3scale-amp2/backend-rhel8, 3scale-amp2/toolbox-rhel9not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 2 mo ago
Exploit prediction
0.56% chance of exploitation in the next 30 days, higher than 47% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 8.7 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N |
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| CNA | 4.0 | 8.7 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | rubyzip | <3.4.0 |
3.4.0 |
Affected products
- rubyzip rubyzip
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/rubyzip/rubyzip/commit/17edfbf4423b83211b075acc23a7d8640da63449
patch, web
-
github.com
/rubyzip/rubyzip
product, package
-
github.com
/rubyzip/rubyzip/releases/tag/v3.4.0
release-notes, web
-
github.com
/rubyzip/rubyzip/blob/v3.3.1/lib/zip/entry.rb
technical-description, web
-
github.com
/geo-chen/oss/blob/main/rubyzip.md
technical-description, web
-
vulncheck.com
/advisories/rubyzip-before-3.4.0-path-traversal-in-zip-entry-extract-via-sibling-directory-prefix
third-party-advisory, web
-
nvd.nist.gov
/vuln/detail/CVE-2026-85396
advisory
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/rubyzip/CVE-2026-85396.yml
web
Sources
- CVE List CVE-2026-85396
- GitHub Advisory GHSA-47m2-wp7j-p9vc
- NVD CVE-2026-85396
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.