RubyGems up to 2.0.16/2.2.4/2.4.7 Request hostname input validation
CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
---|---|---|
5.4 | $0-$5k | 0.00 |
A vulnerability has been found in RubyGems up to 2.0.16/2.2.4/2.4.7 (Programming Language Software) and classified as critical. This vulnerability affects some unknown processing of the component Request Handler. The manipulation of the argument hostname
with an unknown input leads to a input validation vulnerability. The CWE definition for the vulnerability is CWE-20. The product receives input or data, but it does
not validate or incorrectly validates that the input has the
properties that are required to process the data safely and
correctly. As an impact it is known to affect confidentiality, integrity, and availability. CVE summarizes:
RubyGems 2.0.x before 2.0.17, 2.2.x before 2.2.5, and 2.4.x before 2.4.8 does not validate the hostname when fetching gems or making API request, which allows remote attackers to redirect requests to arbitrary domains via a crafted DNS SRV record with a domain that is suffixed with the original domain name, aka a "DNS hijack attack." NOTE: this vulnerability exists because to an incomplete fix for CVE-2015-3900.
The weakness was published 08/25/2015 (Website). The advisory is shared for download at trustwave.com. This vulnerability was named CVE-2015-4020 since 05/18/2015. The exploitation appears to be difficult. The attack can be initiated remotely. No form of authentication is required for a successful exploitation. There are known technical details, but no exploit is available.
The vulnerability scanner Nessus provides a plugin with the ID 84248 , which helps to determine the existence of the flaw in a target environment. The commercial vulnerability scanner Qualys is able to test this issue with plugin 350153 (Amazon Linux Security Advisory for ruby22: ALAS-2015-549).
Upgrading to version 2.0.17, 2.2.5 or 2.4.8 eliminates this vulnerability.
The vulnerability is also documented in the vulnerability database at Tenable (84248). Similar entry is available at VDB-110973.
Product
Type
Name
Version
- 2.0.0
- 2.0.1
- 2.0.2
- 2.0.3
- 2.0.4
- 2.0.5
- 2.0.6
- 2.0.7
- 2.0.8
- 2.0.9
- 2.0.10
- 2.0.11
- 2.0.12
- 2.0.13
- 2.0.14
- 2.0.15
- 2.0.16
- 2.2.0
- 2.2.1
- 2.2.2
- 2.2.3
- 2.2.4
- 2.4.0
- 2.4.1
- 2.4.2
- 2.4.3
- 2.4.4
- 2.4.5
- 2.4.6
- 2.4.7
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB CVSS-B Score: 🔍VulDB CVSS-BT Score: 🔍
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 5.6VulDB Meta Temp Score: 5.4
VulDB Base Score: 5.6
VulDB Temp Score: 5.4
VulDB Vector: 🔍
VulDB Reliability: 🔍
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: Input validationCWE: CWE-20
CAPEC: 🔍
ATT&CK: 🔍
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: 84248
Nessus File: 🔍
Nessus Risk: 🔍
OpenVAS ID: 14611
OpenVAS Name: Amazon Linux Local Check: ALAS-2015-549
OpenVAS File: 🔍
OpenVAS Family: 🔍
Qualys ID: 🔍
Qualys Name: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: RubyGems 2.0.17/2.2.5/2.4.8
Patch: github.com
Timeline
05/18/2015 🔍06/18/2015 🔍
08/25/2015 🔍
08/25/2015 🔍
08/26/2015 🔍
10/27/2015 🔍
06/13/2022 🔍
Sources
Advisory: trustwave.comStatus: Not defined
Confirmation: 🔍
CVE: CVE-2015-4020 (🔍)
Vulnerability Center: 53990 - RubyGems Remote DNS Hijacking due to Improper Validation of Hostname Returned in the SRV Record, Medium
SecurityFocus: 75431
See also: 🔍
Entry
Created: 08/26/2015 10:11Updated: 06/13/2022 14:03
Changes: 08/26/2015 10:11 (55), 03/01/2018 10:21 (12), 06/13/2022 13:58 (3), 06/13/2022 14:03 (1)
Complete: 🔍
Cache ID: 3:8CF:103
No comments yet. Languages: en.
Please log in to comment.