9.8crit
CVE-2017-5946
Directory traversal vulnerability in RubyZip
Also known as GHSA-gcqq-w6gr-h9j9
Published 9 y ago · modified 4 mo ago · JSON
CVSS
9.8
v3.1 · NVD
CISA KEV
No
not known exploited
EPSS
3.4%
percentile 89%
Public exploits
0
none known
Summary
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.
Exploit prediction (EPSS)
3.44% probability of exploitation in the next 30 days, higher than 89% of all scored CVEs.
CVSS scores
| Assigned by | Version | Score | Vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| rubygems | rubyzip | <1.2.1 | 1.2.1 |
Classification
- Weakness
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
- github.com /rubyzip/rubyzip/releases · x_refsource_CONFIRM, x_transferred
- securityfocus.com /bid/96445 · vdb-entry, x_refsource_BID, x_transferred
- github.com /rubyzip/rubyzip/issues/315 · x_refsource_CONFIRM, x_transferred
- debian.org /security/2017/dsa-3801 · vendor-advisory, x_refsource_DEBIAN, x_transferred
- nvd.nist.gov /vuln/detail/CVE-2017-5946 · advisory
- github.com /rubyzip/rubyzip/commit/ce4208fdecc2ad079b05d3c49d70fe6ed1d07016 · web
- github.com /rubysec/ruby-advisory-db/blob/master/gems/rubyzip/CVE-2017-5946.yml · web
- github.com /rubyzip/rubyzip · package
- web.archive.org /web/20200227185727/http://www.securityfocus.com/bid/96445 · web
Sources
- CVE List: CVE-2017-5946
- GitHub Advisory: GHSA-gcqq-w6gr-h9j9
- NVD: CVE-2017-5946
vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.