CVE-2026-85396
published 2026-09-03CVE-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…
PriorityP346high7.5CVSS 3.1
AVNACLPRNUINSUCNIHAN
EPSS
0.56%
46.6th percentile
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.
Affected
6 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| 3scale-amp2 | backend-rhel8 | — | — |
| 3scale-amp2 | system-rhel8 | — | — |
| 3scale-amp2 | system-rhel9 | — | — |
| 3scale-amp2 | toolbox-rhel9 | — | — |
| rubyzip | rubyzip | < 3.4.0 | 3.4.0 |
| rubyzip_project | rubyzip | >= 0 < 3.4.0 | 3.4.0 |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
nvdv4.08.7HIGHCVSS: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
vendor_redhat7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
rubyzip: rubyzip: Arbitrary file write via path traversal
vendor_redhat·2026-09-03·CVSS 7.5
CVE-2026-85396 [HIGH] CWE-22 rubyzip: rubyzip: Arbitrary file write via path traversal
rubyzip: rubyzip: Arbitrary file write via path traversal
A flaw was found in rubyzip. This path traversal vulnerability in the Zip::Entry#extract function allows a remote attacker to craft malicious archive entries. By failing to properly validate extraction paths, the vulnerability enables an attacker to write files outside the intended extraction directory, potentially leading to arbitrary file write.
Package: 3scale-amp2/backend-rhel8 (Red Hat 3scale API Management Platform 2) - Affected
Package: 3scale-amp2/system-rhel8 (Red Hat 3scale API Management Platform 2) - Affected
Package: 3scale-amp2/system-rhel9 (Red Hat 3scale API Management Platform 2) - Affected
Package: 3scale-amp2/toolbox-rhel9 (Red Hat 3scale API Management Platform 2) - Affected
VulDB
rubyzip up to 3.3.x Path Validation Zip::Entry#extract path traversal (EUVD-2026-70673)
vuldb·2026-09-03·CVSS 7.5
CVE-2026-85396 [HIGH] rubyzip up to 3.3.x Path Validation Zip::Entry#extract path traversal (EUVD-2026-70673)
A vulnerability, which was classified as problematic, was found in rubyzip up to 3.3.x. Impacted is the function Zip::Entry#extract of the component Path Validation. The manipulation results in path traversal.
This vulnerability was named CVE-2026-85396. The attack may be performed from remote. There is no available exploit.
You should upgrade the affected component.
GHSA
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.
ghsa_unreviewed·2026-09-03
CVE-2026-85396 [HIGH] CWE-22 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.
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.
GHSA
rubyzip path traversal vulnerability
ghsa·2026-09-03
CVE-2026-85396 [HIGH] CWE-22 rubyzip path traversal vulnerability
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.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2026-85396 rubygem-rubyzip: rubyzip: Arbitrary file write via path traversal [fedora-all]
bugzilla·2026-09-04·CVSS 7.5
CVE-2026-85396 [HIGH] CVE-2026-85396 rubygem-rubyzip: rubyzip: Arbitrary file write via path traversal [fedora-all]
CVE-2026-85396 rubygem-rubyzip: rubyzip: Arbitrary file write via path traversal [fedora-all]
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
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.
Bugzilla
CVE-2026-85396 rubyzip: rubyzip: Arbitrary file write via path traversal
bugzilla·2026-09-03·CVSS 7.5
CVE-2026-85396 [HIGH] CVE-2026-85396 rubyzip: rubyzip: Arbitrary file write via path traversal
CVE-2026-85396 rubyzip: rubyzip: Arbitrary file write via path traversal
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.
https://github.com/geo-chen/oss/blob/main/rubyzip.mdhttps://github.com/rubyzip/rubyziphttps://github.com/rubyzip/rubyzip/blob/v3.3.1/lib/zip/entry.rbhttps://github.com/rubyzip/rubyzip/commit/17edfbf4423b83211b075acc23a7d8640da63449https://github.com/rubyzip/rubyzip/releases/tag/v3.4.0https://www.vulncheck.com/advisories/rubyzip-before-3.4.0-path-traversal-in-zip-entry-extract-via-sibling-directory-prefix
2026-09-03
Published