CVE-2026-85396

published 3 Sep 2026 · updated 5 Sep 2026

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

7.5HighCVSS 7.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 3.4.0.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
rubyzip<3.4.03.4.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-85396 severity on Zeptric[![CVE-2026-85396](https://zeptric.io/badge/cve/CVE-2026-85396.svg)](https://zeptric.io/cve/CVE-2026-85396)