CVE-2026-85396

rubyzip before 3.4.0 Path Traversal in Zip::Entry#extract via Sibling-Directory Prefix

Published Sep 3, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-47m2-wp7j-p9vc rubyzip path traversal vulnerability
History
Type Values Removed Values Added
First Time appeared Rubyzip
Rubyzip rubyzip
Vendors & Products Rubyzip
Rubyzip rubyzip
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title rubyzip before 3.4.0 Path Traversal in Zip::Entry#extract via Sibling-Directory Prefix
First Time appeared Rubyzip Project
Rubyzip Project rubyzip
Weaknesses CWE-22
CPEs cpe:2.3:a:rubyzip_project:rubyzip:*:*:*:*:*:*:*:*
Vendors & Products Rubyzip Project
Rubyzip Project rubyzip
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N'}

cvssV4_0

{'score': 8.7, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Sep 3, 2026, 7:00 PM
Reserved
Sep 3, 2026, 6:10 PM
Status
Awaiting Analysis
Published
Sep 3, 2026, 7:17 PM
Modified
Sep 24, 2026, 8:28 PM
Severity
Important
Public date
Sep 3, 2026, 6:54 PM