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.
References
Configurations
No configuration.
History
No history.
Information
Published : 2026-09-03 19:17
Updated : 2026-09-03 19:17
NVD link : CVE-2026-85396
Mitre link : CVE-2026-85396
CVE.ORG link : CVE-2026-85396
JSON object : View
Products Affected
No product.
CWE
CWE-22
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
