First published: Tue Aug 25 2015(Updated: )
RubyGems 2.0.x before 2.0.17, 2.2.x before 2.2.5, and 2.3.x before 2.4.8 does not validate the hostname when fetching gems or making API requests, 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 of an incomplete fix for CVE-2015-3900.
Credit: cve@mitre.org cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
rubygems/rubygems-update | >=2.3.0<2.4.8 | 2.4.8 |
rubygems/rubygems-update | >=2.1.0.rc.1<2.2.5 | 2.2.5 |
rubygems/rubygems-update | <2.0.17 | 2.0.17 |
Oracle Solaris SPARC | =11.3 | |
RubyGems | =2.0.0 | |
RubyGems | =2.0.0-preview2 | |
RubyGems | =2.0.0-preview2.1 | |
RubyGems | =2.0.0-preview2.2 | |
RubyGems | =2.0.0-rc1 | |
RubyGems | =2.0.0-rc2 | |
RubyGems | =2.0.1 | |
RubyGems | =2.0.2 | |
RubyGems | =2.0.3 | |
RubyGems | =2.0.4 | |
RubyGems | =2.0.5 | |
RubyGems | =2.0.6 | |
RubyGems | =2.0.7 | |
RubyGems | =2.0.8 | |
RubyGems | =2.0.9 | |
RubyGems | =2.0.10 | |
RubyGems | =2.0.11 | |
RubyGems | =2.0.12 | |
RubyGems | =2.0.13 | |
RubyGems | =2.0.14 | |
RubyGems | =2.0.15 | |
RubyGems | =2.0.16 | |
RubyGems | =2.2.0 | |
RubyGems | =2.2.1 | |
RubyGems | =2.2.2 | |
RubyGems | =2.2.3 | |
RubyGems | =2.2.4 | |
RubyGems | =2.4.0 | |
RubyGems | =2.4.1 | |
RubyGems | =2.4.2 | |
RubyGems | =2.4.3 | |
RubyGems | =2.4.4 | |
RubyGems | =2.4.5 | |
RubyGems | =2.4.6 | |
RubyGems | =2.4.7 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2015-4020 is rated as a high severity vulnerability due to its potential to allow remote attackers to redirect requests.
To fix CVE-2015-4020, update RubyGems to version 2.4.8, 2.2.5, or 2.0.17 or later.
CVE-2015-4020 affects RubyGems versions 2.0.x before 2.0.17, 2.2.x before 2.2.5, and 2.3.x before 2.4.8.
CVE-2015-4020 allows remote attackers to execute DNS spoofing attacks by redirecting requests to arbitrary domains.
CVE-2015-4020 is not limited to a specific operating system but impacts all platforms using affected RubyGems versions.