CVE-2026-85396: rubyzip - Path Traversal
- Cve: CVE-2026-85396
- Name: rubyzip - Path Traversal
- 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.
- Impact: Attackers can write files outside the intended extraction directory, potentially leading to arbitrary file overwrite and system compromise.
- Remediation: Update to version 3.4.0 or later.
- Vulnerability type: path_traversal
- Vulnerability impact: file_system_write, data_tampering
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- Epss score: 0.00564
- Epss percentile: 0.47795
- Assignee: [email protected]
- Published at: 2026-09-03T19:17:31Z
- Age in days: 82
- Modified at: 2026-09-24T20:28:01Z
- Patch available: yes
- References total: 6
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-85396
- Nvd status: awaiting_analysis
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
References
Same in every row:
- Source: nvd
- Tags:
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| rubyzip_project:rubyzip | < 3.4.0 | no | cna | /v1/products/rubyzip_project/rubyzip |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| rubyzip/rubyzip | commit, fix, package, releases | yes | /v1/repositories/rubyzip/rubyzip |
Index
- Repositories: 343
- Repositories high signal: 186
- Packages: 1
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts