{"id":"CVE-2026-85396","published":"2026-09-03T18:54:27Z","modified":"2026-09-03T19:00:09Z","title":"rubyzip before 3.4.0 Path Traversal in Zip::Entry#extract via Sibling-Directory Prefix","vendor":"rubyzip","product":"rubyzip","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00564,"percentile":0.4781,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/rubyzip/rubyzip/commit/17edfbf4423b83211b075acc23a7d8640da63449","tags":["patch"]},{"url":"https://github.com/rubyzip/rubyzip","tags":["product"]},{"url":"https://github.com/rubyzip/rubyzip/releases/tag/v3.4.0","tags":["release-notes"]},{"url":"https://github.com/rubyzip/rubyzip/blob/v3.3.1/lib/zip/entry.rb","tags":["technical-description"]},{"url":"https://github.com/geo-chen/oss/blob/main/rubyzip.md","tags":["technical-description"]},{"url":"https://www.vulncheck.com/advisories/rubyzip-before-3.4.0-path-traversal-in-zip-entry-extract-via-sibling-directory-prefix","tags":["third-party-advisory"]}],"priority":{"score":14.8,"factors":[{"name":"EPSS percentile","points":9.56},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"rubyzip","affectedVersions":[{"vendor":"rubyzip","product":"rubyzip","versions":["< 3.4.0"]}],"fixedVersions":[{"vendor":"rubyzip","product":"rubyzip","versions":["3.4.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-09-03T18:59:39.190691Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"rubyzip","vulnerableRanges":["<3.4.0"],"patched":["3.4.0"],"from":["GHSA-47m2-wp7j-p9vc"],"provenance":"source"}],"summary":{"text":"The flaw is a path traversal vulnerability in the Zip::Entry#extract method of rubyzip, affecting versions before 3.4.0, where extraction paths are checked by prefix comparison without trailing separators. An attacker can exploit this by crafting archive entries with names such as ../upload_backup/owned.sh, causing files to be written outside the intended extraction directory into sibling paths that share the destination prefix; the attack requires only network access to supply the archive, with no privileges or user interaction needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:33:04Z"},"euvd":{"id":"EUVD-2026-70673","exploited":false,"provenance":"source"}}