Vulnerability · Published Sep 3, 2026 · Assigned by VulnCheck

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

High 7.5

In plain English

A high-severity path traversal in rubyzip from rubyzip. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 47% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.6%top 52.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12ruby-zipno fix listedDEBIAN-CVE-2026-85396
Debian:13ruby-zipno fix listedDEBIAN-CVE-2026-85396
Debian:14ruby-zip3.4.0+dfsg-1DEBIAN-CVE-2026-85396
RubyGemsrubyzip3.4.0GHSA-47m2-wp7j-p9vc
Ubuntu:22.04:LTSruby-zipno fix listedUBUNTU-CVE-2026-85396
Ubuntu:24.04:LTSruby-zipno fix listedUBUNTU-CVE-2026-85396
Ubuntu:26.04:LTSruby-zipno fix listedUBUNTU-CVE-2026-85396

Affected products (as reported)

VendorProductVersions
rubyzip rubyzip 0 – before 3.4.0

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

References