First published: Mon Feb 27 2017(Updated: )
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.
Credit: cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
rubygems/rubyzip | <1.2.1 | 1.2.1 |
rubyzip | <1.2.1 | |
Debian GNU/Linux | =8.0 | |
Debian GNU/Linux | =9.0 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2017-5946 is considered a high-severity vulnerability due to its ability to allow arbitrary file writing via directory traversal.
To fix CVE-2017-5946, upgrade the rubyzip gem to version 1.2.1 or later.
The impact of CVE-2017-5946 can allow an attacker to overwrite arbitrary files on the filesystem, potentially leading to data loss or compromise.
CVE-2017-5946 affects versions of the rubyzip gem before 1.2.1 irrespective of the Ruby version in use.
Yes, users of Debian Linux 8.0 and 9.0 with the vulnerable rubyzip gem installed are affected by CVE-2017-5946.