{"schema":"threatline.record/2","record":{"id":"CVE-2026-85396","aliases":["GHSA-47m2-wp7j-p9vc"],"summary":"rubyzip path traversal vulnerability","details":"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.","categories":["Libraries & packages"],"product":"rubyzip","vendor":"rubyzip","ecosystem":"rubygems","affected_ranges":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-47m2-wp7j-p9vc","source_modified_at":"2026-09-25T19:25:56Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"rubygems","name":"rubyzip"},"range":"< 3.4.0"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-85396","source_modified_at":"2026-09-03T19:00:09.867Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"rubyzip","vendor":"rubyzip","versions":[{"version":"0","lessThan":"3.4.0","status":"affected","versionType":"semver"},{"version":"3.4.0","status":"unaffected","versionType":"semver"}],"defaultStatus":"unaffected"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-47m2-wp7j-p9vc","source_modified_at":"2026-09-25T19:45:09.880068387Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"RubyGems","name":"rubyzip","purl":"pkg:gem/rubyzip"},"ranges":[{"events":[{"introduced":"0"},{"fixed":"3.4.0"}],"type":"ECOSYSTEM"}],"versions":["0.5.11","0.5.12","0.5.7","0.5.8","0.5.9","0.9.1","0.9.4","0.9.5","0.9.6.1","0.9.7","0.9.8","0.9.9","1.0.0","1.0.0.beta1","1.1.0","1.1.1","1.1.2","1.1.3","1.1.4","1.1.5","1.1.6","1.1.7","1.2.0","1.2.1","1.2.2","1.2.3","1.2.4","1.3.0","2.0.0","2.1.0","2.2.0","2.3.0","2.3.1","2.3.2","2.4.1","2.4.rc1","3.0.0","3.0.0.alpha","3.0.0.rc1","3.0.0.rc2","3.0.1","3.0.2","3.1.0","3.1.1","3.2.0","3.2.1","3.2.2","3.3.0","3.3.1"]}],"fixed_versions":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-47m2-wp7j-p9vc","source_modified_at":"2026-09-25T19:25:56Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"rubygems","name":"rubyzip"},"version":"3.4.0"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-85396","source_modified_at":"2026-09-03T19:00:09.867Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"rubyzip","ecosystem":null},"version":"3.4.0","basis":"first unaffected version stated in the CVE record"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-47m2-wp7j-p9vc","source_modified_at":"2026-09-25T19:45:09.880068387Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"RubyGems","name":"rubyzip","purl":"pkg:gem/rubyzip"},"version":"3.4.0"}],"cvss":8.7,"severity":"High","kev":{"listed":false},"epss":{"probability":0.00564,"percentile":0.46184,"score_date":"2026-10-23"},"published_at":"2026-09-03T18:54:27.903Z","modified_at":"2026-09-25T19:45:09.880068387Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/advisories/GHSA-47m2-wp7j-p9vc","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-09-25T19:25:56Z"},{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-85396","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-09-03T19:00:09.867Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-47m2-wp7j-p9vc","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-09-25T19:45:09.880068387Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-85396","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["GitHub Advisory Database","CVE List","OSV","EPSS"],"references":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-85396","source":"GitHub Advisory Database"},{"source":"CVE List","url":"https://github.com/rubyzip/rubyzip/commit/17edfbf4423b83211b075acc23a7d8640da63449","tags":["patch"]},{"source":"CVE List","url":"https://github.com/geo-chen/oss/blob/main/rubyzip.md","tags":["technical-description"]},{"source":"CVE List","url":"https://github.com/rubyzip/rubyzip/blob/v3.3.1/lib/zip/entry.rb","tags":["technical-description"]},{"source":"CVE List","url":"https://github.com/rubyzip/rubyzip/releases/tag/v3.4.0","tags":["release-notes"]},{"source":"CVE List","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"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rubyzip/CVE-2026-85396.yml","source":"GitHub Advisory Database"},{"url":"https://github.com/advisories/GHSA-47m2-wp7j-p9vc","source":"GitHub Advisory Database"},{"source":"CVE List","url":"https://github.com/rubyzip/rubyzip","tags":["product"]}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"partial","assessed_at":"2026-09-03T18:59:39.190691Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"ecosystem","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-09-25T19:45:09.880068387Z","content_hash":"8c8e6c20da8ea70338023c9f7692572c670b9fa190aea02f1bf36599e558ad2c"}}
