Skip to content
OpenAdvisories
High · 7.5 CVE-2026-85396 EUVD-2026-70673GHSA-47m2-wp7j-p9vc

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

Published Sep 3, 2026 · Updated Sep 3, 2026 · Assigned by VulnCheck

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 products

VendorProductAffectedFixed
rubyzip rubyzip < 3.4.0 3.4.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ruby-zip 3.4.0+dfsg-1 —
Debian 13 ruby-zip No fix yet —
Debian 12 ruby-zip No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS ruby-zip No fix yet —
Ubuntu 24.04 LTS ruby-zip No fix yet —
Ubuntu 22.04 LTS ruby-zip No fix yet —
Ubuntu 20.04 LTS ruby-zip No fix yet —
Ubuntu 18.04 LTS ruby-zip No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS ruby-zip No fix yet —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 rubygem-rubyzip No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling cinc-auditor 7.1.7-r8 —
Wolfi rolling logstash-9.3 +1 No fix yet —
Wolfi rolling logstash-9.4 +1 9.4.8-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems rubyzip < 3.4.0 3.4.0 GHSA-47m2-wp7j-p9vc

References