Vulnerability Details : 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 category: Directory traversal
Products affected by CVE-2017-5946
- cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
- cpe:2.3:a:rubyzip_project:rubyzip:*:*:*:*:*:ruby:*:*
Exploit prediction scoring system (EPSS) score for CVE-2017-5946
0.43%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 71 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2017-5946
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.5
|
HIGH | AV:N/AC:L/Au:N/C:P/I:P/A:P |
10.0
|
6.4
|
NIST | |
9.8
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
3.9
|
5.9
|
NIST |
CWE ids for CVE-2017-5946
-
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.Assigned by: nvd@nist.gov (Primary)
References for CVE-2017-5946
-
https://github.com/rubyzip/rubyzip/releases
Releases · rubyzip/rubyzip · GitHubThird Party Advisory
-
http://www.securityfocus.com/bid/96445
rubyzip CVE-2017-5946 Directory Traversal VulnerabilityThird Party Advisory;VDB Entry
-
https://github.com/rubyzip/rubyzip/issues/315
Directory traversal vulnerability · Issue #315 · rubyzip/rubyzip · GitHubThird Party Advisory
-
http://www.debian.org/security/2017/dsa-3801
Debian -- Security Information -- DSA-3801-1 ruby-zipThird Party Advisory
Jump to