
CVE catalog
CVE-2026-85396
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. Attacke
- Severity
- High · CVSS 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 - Published
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 0.56% · Oct 22, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | ruby-zip | sid | 3.7.0+dfsg-1 | fixed |
| Debian | ruby-zip | forky | 3.7.0+dfsg-1 | fixed |
| Debian | ruby-zip | trixie | 2.3.2-1 | vulnerable |
| Debian | ruby-zip | bookworm | 2.3.2-1 | vulnerable |
| Rubygems | rubyzip | Not reported | 3.4.0 | fixed |
| Ubuntu | ruby-zip | 16.04 | 1.1.7-1 | vulnerable |
| Ubuntu | ruby-zip | 18.04 | 1.2.1-1 | vulnerable |
| Ubuntu | ruby-zip | 18.04 | 1.2.1-1.1~build0.18.04.1 | vulnerable |
| Ubuntu | ruby-zip | 20.04 | 1.2.2-1 | vulnerable |
| Ubuntu | ruby-zip | 20.04 | 2.0.0-2 | vulnerable |
| Ubuntu | ruby-zip | 22.04 | 2.0.0-2 | vulnerable |
| Ubuntu | ruby-zip | 22.04 | 2.3.0-2 | vulnerable |
| Ubuntu | ruby-zip | 24.04 | 2.3.2-1 | vulnerable |
| Ubuntu | ruby-zip | 26.04 | 2.3.2-1 | vulnerable |
| Ubuntu | ruby-zip | 26.04 | 3.2.2-1 | vulnerable |
| Ubuntu | ruby-zip | 26.04 | 3.2.2-2 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ruby-zip | source | sid | 3.4.0+dfsg-1 | not yet assigned | Not reported | Not reported |
| Debian | ruby-zip | source | forky | 3.4.0+dfsg-1 | not yet assigned | Not reported | Not reported |
| Debian | ruby-zip | source | trixie | (unfixed) | not yet assigned | Not reported | Not reported |
| Debian | ruby-zip | source | bookworm | (unfixed) | not yet assigned | Not reported | Not reported |
| Rubygems | rubyzip | rubygems | Not reported | 3.4.0 | Not reported | GHSA-47M2-WP7J-P9VC | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [ruby-zip]Affected
Details (2)
2.3.2-1· all · bookwormAffected
nvd · ruby-zip · debian · bookworm; nvd · ruby-zip · debian · 12
2.3.2-1· all · bookwormAffected
nvd · ruby-zip · debian · bookworm; nvd · ruby-zip · debian · 12
[Debian 13 (Trixie)]
- [ruby-zip]Affected
Details (2)
2.3.2-1· all · trixieAffected
nvd · ruby-zip · debian · 13
2.3.2-1· all · trixieAffected
nvd · ruby-zip · debian · 13
Observed:
References
- [https://github.com/advisories/GHSA-47m2-wp7j-p9vc]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-85396]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-85396]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-85396]
- [https://security-tracker.debian.org/tracker/CVE-2026-85396]
[Debian Security Tracker] · [FIRST EPSS] · [GitHub Advisory Database] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database]