Path Traversal in Rubyzip Project
CVE-2017-5946
The Zip::File component in the rubyzip gem before 1.2.1 for Ruby has a directory traversal vulnerability. If a site allows uploading of .zip files, an attacker can upload a malicious file that uses "../" pathname substrings to write arbitrary files to the filesystem.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.034, 89.2th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Rubyzip Project
- Debian Linux — versions 8.0, 9.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 3 other repositories (ARPSyndicate/cvemon, ARPSyndicate/cve-scores, innoq/security_report). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/rubyzip/rubyzip/releases (Third Party Advisory)
- www.securityfocus.com/bid/96445 (Third Party Advisory, VDB Entry, vdb-entry)
- github.com/rubyzip/rubyzip/issues/315 (Third Party Advisory)
- DSA-3801 (vendor-advisory, Third Party Advisory)