DNS Hijack Attack Affecting rubygems-update package, versions >=2.0.0, <2.0.17 >=2.2.0, <2.2.5 >=2.4.0, <2.4.8
Snyk CVSS
Attack Complexity
Low
User Interaction
Required
Threat Intelligence
EPSS
0.64% (79th
percentile)
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-RUBY-RUBYGEMSUPDATE-472657
- published 13 Nov 2019
- disclosed 8 Jun 2015
- credit unknown
How to fix?
Upgrade rubygems-update
to version 2.0.17, 2.2.5, 2.4.8 or higher.
Overview
rubygems-update is an inbuilt rubygem for updating rubygems.
Affected versions of this package are vulnerable to DNS Hijack Attack. It 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 to an incomplete fix for CVE-2015-3900
.