Vulnerability
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. 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.
99 advisories report this vulnerability, across 7 ecosystems.
Advisories
-
AZL-99087
CVE-2026-85396 affecting package rubygem-rubyzip 2.3.2-1
- CGA-22x8-6388-4gxj
- CGA-25hv-w65w-4qm6
- CGA-27f9-g8rr-xx28
- CGA-2jpv-hrgp-29f3
- CGA-2m4c-cjm9-wcmh
- CGA-2xrj-3rp5-86j7
- CGA-376f-h5j9-ghm6
- CGA-37pf-5mcx-jqpm
- CGA-3fvj-4hm2-2wg7
- CGA-3gw4-55fm-p3w9
- CGA-3jhj-fjp2-54xq
- CGA-3wvp-w4hm-g5pg
- CGA-4vcf-7rmg-4f4h
- CGA-52j2-m7g8-c665
- CGA-5332-jg64-h274
- CGA-574f-8qrx-gwqh
- CGA-5fww-jv54-pm2r
- CGA-5g3v-q9j9-wxxr
- CGA-5hpr-8v5f-5pjm
- CGA-5p38-j4mx-37hr
- CGA-5rf9-rx6c-mghh
- CGA-63c6-5xj7-jg69
- CGA-67cr-6fj4-3v3j
- CGA-6hg8-rgpq-8r8v
- CGA-6wf6-9hqp-6jfh
- CGA-736f-h75x-8w87
- CGA-75cm-3mw2-4qv2
- CGA-7846-gjwf-vx2g
- CGA-7hjj-px8r-5qm9
- CGA-7pqj-65jc-478w
- CGA-7r5w-gfgf-fp74
- CGA-7r9c-cv37-f8gf
- CGA-82vw-78h7-75h3
- CGA-88f2-mqv7-9vrg
- CGA-9cjm-7w22-f2xj
- CGA-9fpg-47pv-fr8w
- CGA-9h4j-r96j-rgjf
- CGA-9m2p-59mj-3w74
- CGA-9p2h-fqg4-qc69
- CGA-9pgw-rjjh-2j3g
- CGA-c3cw-c8hw-qcwf
- CGA-c3xv-cw62-w376
- CGA-c98c-8h59-47jp
- CGA-c9v8-8696-qfgr
- CGA-cmr7-hwmm-rw7h
- CGA-cwjj-m8r9-rfvq
- CGA-f6h8-44rq-g8vw
- CGA-f8qr-2q5f-7vpm
- CGA-fr73-f2p3-p5w5
- CGA-fw67-cx4v-36jp
- CGA-g498-v6xp-v28m
- CGA-g4x5-8pqf-5gcj
- CGA-g4xw-9xwj-wv9v
- CGA-h2mq-wwjr-8q5h
- CGA-h88p-vh42-5865
- CGA-hg4v-563q-w4gv
- CGA-hg8g-55g7-h5x6
- CGA-hq35-3679-g2rw
- CGA-hxrf-54m8-9cqg
- CGA-j523-h6fw-crh2
- CGA-j5fx-mjgg-mf49
- CGA-jf69-9wxg-5j55
- CGA-m9hq-xfqq-m3xw
- CGA-mm38-fx5f-64rw
- CGA-p9xw-6c5q-c598
- CGA-pg89-fw4h-pvjm
- CGA-pv9g-mrxr-3v9w
- CGA-pvqw-82qj-cp4v
- CGA-qqx3-4h6q-7xm9
- CGA-qx49-5p6h-j6wf
- CGA-rf7j-jcpx-7jp4
- CGA-rg39-8c65-3p75
- CGA-rhgc-rjx7-j734
- CGA-rmvf-858r-j4rv
- CGA-rrqv-w72g-79ww
- CGA-v588-hvhp-pgp4
- CGA-v9j2-q33f-p58x
- CGA-vgxc-384h-h8r8
- CGA-vhgq-m93p-gfqg
- CGA-vhrh-mwvv-38gq
- CGA-vqc8-p646-33g3
- CGA-vr8p-6986-95fv
- CGA-vxhr-pc9m-4w27
- CGA-w29x-x234-qg78
- CGA-w5fg-r369-9pc9
- CGA-wgjm-qvr3-8mf6
- CGA-whch-mg3w-83c8
- CGA-ww25-qg4w-4mcw
- CGA-ww6r-j38r-q6rg
- CGA-x2xf-r68f-7896
- CGA-x426-f29h-r7w2
- CGA-xfgp-2cw7-4ff7
- CGA-xjh5-92wm-fpgg
- CGA-xmh9-q27x-2gf5
-
DEBIAN-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. Attackers can craft…
-
GHSA-47m2-wp7j-p9vc
rubyzip path traversal vulnerability
-
SUSEVEX-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. Attackers can craft…
-
UBUNTU-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. Attackers can craft…
References
- https://github.com/geo-chen/oss/blob/main/rubyzip.md
- https://github.com/rubyzip/rubyzip
- https://github.com/rubyzip/rubyzip/blob/v3.3.1/lib/zip/entry.rb
- https://github.com/rubyzip/rubyzip/commit/17edfbf4423b83211b075acc23a7d8640da63449
- https://github.com/rubyzip/rubyzip/releases/tag/v3.4.0
- https://www.vulncheck.com/advisories/rubyzip-before-3.4.0-path-traversal-in-zip-entry-extract-via-sibling-directory-prefix