{"id":"CVE-2026-85396","state":"PUBLISHED","title":"rubyzip before 3.4.0 Path Traversal in Zip::Entry#extract via Sibling-Directory Prefix","description":"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.","publishedAt":"2026-09-03T18:54:27.903Z","updatedAt":"2026-09-03T19:00:09.867Z","severity":{"score":8.7,"label":"High","version":"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","source":"VulnCheck"},"assigner":"VulnCheck","products":["rubyzip rubyzip"],"affected":[{"vendor":"rubyzip","product":"rubyzip","packageURL":"pkg:gem/rubyzip","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.4.0","versionType":"semver"},{"version":"3.4.0","status":"unaffected","versionType":"semver"}]}],"references":["https://github.com/rubyzip/rubyzip/commit/17edfbf4423b83211b075acc23a7d8640da63449","https://github.com/rubyzip/rubyzip","https://github.com/rubyzip/rubyzip/releases/tag/v3.4.0","https://github.com/rubyzip/rubyzip/blob/v3.3.1/lib/zip/entry.rb","https://github.com/geo-chen/oss/blob/main/rubyzip.md","https://www.vulncheck.com/advisories/rubyzip-before-3.4.0-path-traversal-in-zip-entry-extract-via-sibling-directory-prefix"],"weaknesses":["CWE-22"],"ingestedAt":"2026-10-29T20:13:15.269Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/85xxx/CVE-2026-85396.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-85396","state":"PUBLISHED","datePublished":"2026-09-03T18:54:27.903Z","dateUpdated":"2026-09-03T19:00:09.867Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-09-03T18:10:59.168Z"},"containers":{"cna":{"title":"rubyzip before 3.4.0 Path Traversal in Zip::Entry#extract via Sibling-Directory Prefix","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"rubyzip","product":"rubyzip","packageURL":"pkg:gem/rubyzip","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.4.0","versionType":"semver"},{"version":"3.4.0","status":"unaffected","versionType":"semver"}]}],"references":[{"url":"https://github.com/rubyzip/rubyzip/commit/17edfbf4423b83211b075acc23a7d8640da63449","tags":["patch"],"name":"Patch Commit"},{"url":"https://github.com/rubyzip/rubyzip","tags":["product"]},{"url":"https://github.com/rubyzip/rubyzip/releases/tag/v3.4.0","tags":["release-notes"],"name":"rubyzip v3.4.0 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","name":"VulnCheck Advisory: rubyzip before 3.4.0 Path Traversal in Zip::Entry#extract via Sibling-Directory Prefix","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"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","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":8.7,"baseSeverity":"HIGH"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-09-03T18:54:27.903Z"},"datePublic":"2026-06-12T00:00:00.000Z","cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:rubyzip_project:rubyzip:*:*:*:*:*:*:*:*","versionEndExcluding":"3.4.0"}]}]}],"credits":[{"lang":"en","value":"George Chen","type":"finder"}],"x_generator":{"engine":"vulncheck-endgame"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-09-03T18:59:39.190691Z","id":"CVE-2026-85396","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-03T19:00:09.867Z"}}]}}}