CVE Catalog

CVE-2026-85396

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.56%

45th percentile - higher than 45% of all known CVEs

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.

Risk Assessment

An attacker could write files to arbitrary locations on the filesystem, potentially leading to overwriting critical files or executing malicious code.

Recommendation

Upgrade rubyzip to version 3.4.0 or later and avoid extracting archives from untrusted sources.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS