{"id":"CVE-2026-85396","aliases":["CVE-2026-85396","GHSA-47m2-wp7j-p9vc"],"related":[],"kind":"vulnerability","state":"published","title":"rubyzip before 3.4.0 Path Traversal in Zip::Entry#extract via Sibling-Directory Prefix","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","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.","format":"markdown","source":"ghsa"}],"published":"2026-09-03T18:54:27.903Z","modified":"2026-09-25T19:45:09.880Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"3.4.0","status":"affected"},{"type":"semver","version":"3.4.0","status":"unaffected"}],"vendor":"rubyzip","product":"rubyzip","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.4.0"}],"ecosystem":"RubyGems","package":"rubyzip","purl":"pkg:gem/rubyzip","source":"ghsa"}],"references":[{"url":"https://github.com/rubyzip/rubyzip/commit/17edfbf4423b83211b075acc23a7d8640da63449","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rubyzip/rubyzip","tags":["package","product"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rubyzip/rubyzip/releases/tag/v3.4.0","tags":["release-notes","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rubyzip/rubyzip/blob/v3.3.1/lib/zip/entry.rb","tags":["technical-description","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/geo-chen/oss/blob/main/rubyzip.md","tags":["technical-description","web"],"sources":["cvelist","ghsa","nvd"]},{"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","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-85396","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rubyzip/CVE-2026-85396.yml","tags":["web"],"sources":["ghsa"]}],"credits":["George Chen"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-09-03T18:59:39.190Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-85396","url":"https://www.cve.org/CVERecord?id=CVE-2026-85396","licence":"CVE Terms of Use","modified":"2026-09-03T19:00:09.867Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-47m2-wp7j-p9vc","url":"https://github.com/advisories/GHSA-47m2-wp7j-p9vc","licence":"CC-BY-4.0","modified":"2026-09-25T19:45:09.880Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-85396","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-85396","licence":"Public domain","modified":"2026-09-24T20:28:01.780Z"}],"updatedAt":"2026-11-25T22:59:36.222Z","epss":{"score":0.00383,"percentile":0.3449,"date":"2026-12-02T12:00:21.000Z"}}