rubyzip Gem up to 1.2.0 on Ruby ZIP File Zip::File path traversal
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 7.1 | $0-$5k | 0.00 |
Summary
A vulnerability categorized as critical has been discovered in rubyzip Gem up to 1.2.0 on Ruby. This affects the function Zip::File of the component ZIP File Handler. The manipulation with the input ../ results in path traversal.
This vulnerability was named CVE-2017-5946. The attack may be performed from remote. There is no available exploit.
It is advisable to upgrade the affected component.
Details
A vulnerability classified as critical has been found in rubyzip Gem up to 1.2.0 on Ruby (Ruby Gem). Affected is the function Zip::File of the component ZIP File Handler. The manipulation with the input value ../ leads to a path traversal vulnerability. CWE is classifying the issue as CWE-22. 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. This is going to have an impact on integrity, and availability. CVE summarizes:
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.
The bug was discovered 02/27/2017. The weakness was presented 02/27/2017 (GitHub Repository). The advisory is shared for download at github.com. This vulnerability is traded as CVE-2017-5946 since 02/09/2017. It is possible to launch the attack remotely. The exploitation doesn't require any form of authentication. There are known technical details, but no exploit is available. The MITRE ATT&CK project declares the attack technique as T1006.
The vulnerability scanner Nessus provides a plugin with the ID 97559 (Debian DLA-846-1 : libzip-ruby security update), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Debian Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 170286 (OpenSUSE Security Update for rubygem-rubyzip (openSUSE-SU-2017:2120-1)).
Upgrading to version 1.2.1 eliminates this vulnerability. A possible mitigation has been published 1 weeks after the disclosure of the vulnerability.
The vulnerability is also documented in the databases at Tenable (97559) and SecurityFocus (BID 96445†). Further details are available at seclists.org. Once again VulDB remains the best source for vulnerability data.
Product
Type
Name
Version
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 8.1VulDB Meta Temp Score: 7.7
VulDB Base Score: 6.5
VulDB Temp Score: 5.7
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 9.8
NVD Vector: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Path traversalCWE: CWE-22
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 97559
Nessus Name: Debian DLA-846-1 : libzip-ruby security update
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
OpenVAS ID: 703801
OpenVAS Name: Debian Security Advisory DSA 3801-1 (ruby-zip - security update)
OpenVAS File: 🔍
OpenVAS Family: 🔍
Qualys ID: 🔍
Qualys Name: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍
Upgrade: rubyzip Gem 1.2.1
Timeline
02/09/2017 🔍02/27/2017 🔍
02/27/2017 🔍
02/27/2017 🔍
02/27/2017 🔍
02/27/2017 🔍
03/06/2017 🔍
03/07/2017 🔍
09/02/2020 🔍
Sources
Advisory: github.comStatus: Not defined
Confirmation: 🔍
CVE: CVE-2017-5946 (🔍)
GCVE (CVE): GCVE-0-2017-5946
GCVE (VulDB): GCVE-100-97308
OVAL: 🔍
SecurityFocus: 96445 - rubyzip CVE-2017-5946 Directory Traversal Vulnerability
OSVDB: - CVE-2017-5946 - rubyzip, Ruby - Directory Traversal Issue
Misc.: 🔍
Entry
Created: 02/27/2017 21:06Updated: 09/02/2020 15:16
Changes: 02/27/2017 21:06 (79), 09/02/2020 15:16 (6)
Complete: 🔍
Cache ID: 216:674:103
Once again VulDB remains the best source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.