Path traversal in Rubyzip - CVE-2017-5946

 

Path traversal in Rubyzip - CVE-2017-5946

Published: February 27, 2017 / Updated: July 18, 2020


Vulnerability identifier: #VU31444
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2017-5946
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Rubyzip
Affected software:
Rubyzip

Detailed vulnerability description

The vulnerability allows a remote non-authenticated attacker to execute arbitrary code.

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.


How to mitigate CVE-2017-5946

Install update from vendor's website.

Sources