rubyzip/rubyzip · Security
Directory traversal vulnerability in RubyZip
- GHSA ID
- GHSA-gcqq-w6gr-h9j9
- CVE ID
- CVE-2017-5946
- Severity
- critical
- Published
- Updated
- CVSS
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Description
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.
CWEs
- CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-5946 ↗
- https://github.com/rubyzip/rubyzip/issues/315 ↗
- https://github.com/rubyzip/rubyzip/releases ↗
- http://www.debian.org/security/2017/dsa-3801 ↗
- https://web.archive.org/web/20200227185727/http://www.securityfocus.com/bid/96445 ↗
- https://github.com/rubyzip/rubyzip/commit/ce4208fdecc2ad079b05d3c49d70fe6ed1d07016 ↗
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rubyzip/CVE-2017-5946.yml ↗
- https://github.com/advisories/GHSA-gcqq-w6gr-h9j9 ↗