CVE-2026-85396
rubyzip before 3.4.0 Path Traversal in Zip::Entry#extract via Sibling-Directory Prefix
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- High
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
8.7
rubyzip before 3.4.0 Path Traversal in Zip::Entry#extract via Sibling-Directory Prefix
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.
- Record
CVE-2026-85396- CVSS 4.0
- 8.7 High
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 - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Weakness
- CWE-22
- Updated
- 2026-11-02
EUVDEUVD-2026-70673
8.7
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.
- Record
EUVD-2026-70673- CVSS 4.0
- 8.7 High
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 - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-47m2-wp7j-p9vc
8.7
rubyzip path traversal vulnerability
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.
- Record
GHSA-47m2-wp7j-p9vc- CVSS 4.0
- 8.7 High
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 - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Weakness
- CWE-22
- Updated
- 2026-11-02
NVD
8.7
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.
- Record
CVE-2026-85396- CVSS 4.0
- 8.7 High
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 - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Weakness
- CWE-22
- Updated
- 2026-11-02
OSV
8.7
rubyzip before 3.4.0 Path Traversal in Zip::Entry#extract via Sibling-Directory Prefix
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.
- Record
CVE-2026-85396- CVSS 4.0
- 8.7 High
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 - Weakness
- CWE-22
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2026-85396
7.5
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.
- Record
DEBIAN-CVE-2026-85396- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
OSVGHSA-47m2-wp7j-p9vc
8.7
rubyzip path traversal vulnerability
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.
- Record
GHSA-47m2-wp7j-p9vc- CVSS 4.0
- 8.7 High
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 - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Weakness
- CWE-22
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2026-85396
8.7
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.
- Record
UBUNTU-CVE-2026-85396- CVSS 4.0
- 8.7 High
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 - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
OSVAZL-99087 No score
CVE-2026-85396 affecting package rubygem-rubyzip 2.3.2-1
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.
- Record
AZL-99087- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
rubyzipRubyGems |
before 3.4.0 | 3.4.0 |
rubygem-rubyzipAzure Linux:3 |
through 2.3.2-1 | None known |
ruby-zipDebian:12 |
All versions, plus listed versions 2.3.2-13.2.2+dfsg-13.2.2-13.2.2-23.4.0+dfsg-13.4.1+dfsg-13.5.0+dfsg-13.7.0+dfsg-1 |
None known |
ruby-zipDebian:13 |
All versions, plus listed versions 2.3.2-13.2.2+dfsg-13.2.2-13.2.2-23.4.0+dfsg-13.4.1+dfsg-13.5.0+dfsg-13.7.0+dfsg-1 |
None known |
ruby-zipDebian:14 |
before 3.4.0+dfsg-1, plus listed versions 2.3.2-13.2.2+dfsg-13.2.2-13.2.2-2 |
3.4.0+dfsg-1 |
rubyzipRubyGems |
before 3.4.0, plus listed versions 0.5.110.5.120.5.70.5.80.5.9 Show 44 moreShow less0.9.10.9.40.9.50.9.6.10.9.70.9.80.9.91.0.01.0.0.beta11.1.01.1.11.1.21.1.31.1.41.1.51.1.61.1.71.2.01.2.11.2.21.2.31.2.41.3.02.0.02.1.02.2.02.3.02.3.12.3.22.4.12.4.rc13.0.03.0.0.alpha3.0.0.rc13.0.0.rc23.0.13.0.23.1.03.1.13.2.03.2.13.2.23.3.03.3.1 |
3.4.0 |
ruby-zipUbuntu:16.04:LTS |
All versions, plus listed versions 1.1.7-1 |
None known |
ruby-zipUbuntu:18.04:LTS |
All versions, plus listed versions 1.2.1-11.2.1-1.1~build0.18.04.1 |
None known |
ruby-zipUbuntu:20.04:LTS |
All versions, plus listed versions 1.2.2-12.0.0-2 |
None known |
ruby-zipUbuntu:22.04:LTS |
All versions, plus listed versions 2.0.0-22.3.0-2 |
None known |
ruby-zipUbuntu:24.04:LTS |
All versions, plus listed versions 2.3.2-1 |
None known |
ruby-zipUbuntu:26.04:LTS |
All versions, plus listed versions 2.3.2-13.2.2-13.2.2-2 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-85396 is a high vulnerability (CVSS 8.7) in Rubyzip, published September 3, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.56%, the 47th percentile. Fixed in rubyzip 3.4.0.
References
github.com/rubyzip/rubyzip/commit/17edfbf4423b83211b075acc23a7d8640da63449
github.com/rubyzip/rubyzip
github.com/rubyzip/rubyzip/releases/tag/v3.4.0
github.com/rubyzip/rubyzip/blob/v3.3.1/lib/zip/entry.rb
github.com/geo-chen/oss/blob/main/rubyzip.md
vulncheck.com/advisories/rubyzip-before-3.4.0-path-traversal-in-zip-entry-extract-via-sibling-directory-prefix
Show 8 moreShow less
nvd.nist.gov/vuln/detail/CVE-2026-85396
github.com/rubysec/ruby-advisory-db/blob/master/gems/rubyzip/CVE-2026-85396.yml
github.com/advisories/GHSA-47m2-wp7j-p9vc
github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85396.json
security-tracker.debian.org/tracker/CVE-2026-85396
ubuntu.com/security/CVE-2026-85396
cve.org/CVERecord?id=CVE-2026-85396
github.com/rubyzip/rubyzip/issues/664