{"id":"DEBIAN-CVE-2026-85396","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.","modified":"2026-09-25T09:00:22.589657786Z","published":"2026-09-03T19:17:31.527Z","upstream":["CVE-2026-85396"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-85396"}],"affected":[{"package":{"name":"ruby-zip","ecosystem":"Debian:12","purl":"pkg:deb/debian/ruby-zip?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.3.2-1","3.2.2+dfsg-1","3.2.2-1","3.2.2-2","3.4.0+dfsg-1","3.4.1+dfsg-1","3.5.0+dfsg-1","3.7.0+dfsg-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-85396.json"}},{"package":{"name":"ruby-zip","ecosystem":"Debian:13","purl":"pkg:deb/debian/ruby-zip?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.3.2-1","3.2.2+dfsg-1","3.2.2-1","3.2.2-2","3.4.0+dfsg-1","3.4.1+dfsg-1","3.5.0+dfsg-1","3.7.0+dfsg-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-85396.json"}},{"package":{"name":"ruby-zip","ecosystem":"Debian:14","purl":"pkg:deb/debian/ruby-zip?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.0+dfsg-1"}]}],"versions":["2.3.2-1","3.2.2+dfsg-1","3.2.2-1","3.2.2-2"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-85396.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"}]}