CVE catalog

CVE-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 comparison without trailing separators. Attacke

[CVE catalog]

Severity
High · CVSS 8.7CVSS: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
Published
Updated
Source
[NVD] · [CVE record]
EPSS
0.56% · Oct 22, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianruby-zipsid3.7.0+dfsg-1fixed
Debianruby-zipforky3.7.0+dfsg-1fixed
Debianruby-ziptrixie2.3.2-1vulnerable
Debianruby-zipbookworm2.3.2-1vulnerable
RubygemsrubyzipNot reported3.4.0fixed
Ubunturuby-zip16.041.1.7-1vulnerable
Ubunturuby-zip18.041.2.1-1vulnerable
Ubunturuby-zip18.041.2.1-1.1~build0.18.04.1vulnerable
Ubunturuby-zip20.041.2.2-1vulnerable
Ubunturuby-zip20.042.0.0-2vulnerable
Ubunturuby-zip22.042.0.0-2vulnerable
Ubunturuby-zip22.042.3.0-2vulnerable
Ubunturuby-zip24.042.3.2-1vulnerable
Ubunturuby-zip26.042.3.2-1vulnerable
Ubunturuby-zip26.043.2.2-1vulnerable
Ubunturuby-zip26.043.2.2-2vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianruby-zipsourcesid3.4.0+dfsg-1not yet assignedNot reportedNot reported
Debianruby-zipsourceforky3.4.0+dfsg-1not yet assignedNot reportedNot reported
Debianruby-zipsourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debianruby-zipsourcebookworm(unfixed)not yet assignedNot reportedNot reported
RubygemsrubyziprubygemsNot reported3.4.0Not reportedGHSA-47M2-WP7J-P9VCNot reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [ruby-zip]Affected
    Details (2)
    • 2.3.2-1 · all · bookworm

      Affected

      nvd · ruby-zip · debian · bookworm; nvd · ruby-zip · debian · 12

    • 2.3.2-1 · all · bookworm

      Affected

      nvd · ruby-zip · debian · bookworm; nvd · ruby-zip · debian · 12

[Debian 13 (Trixie)]

  • [ruby-zip]Affected
    Details (2)
    • 2.3.2-1 · all · trixie

      Affected

      nvd · ruby-zip · debian · 13

    • 2.3.2-1 · all · trixie

      Affected

      nvd · ruby-zip · debian · 13

Observed:

References