CVE-2015-4020
mediumpriority · track · 18EPSS 0.035 · 89 %ileEUUSEPSS · scored 2026-10-27
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 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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · low–medium · 3.7–4.3
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (35)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-qv62-xfj6-32xmRubyGems Improper Input Validation vulnerability2022-05-17ghsa · osvUS
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.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (22)
External citations — patches, advisories, analysis.
- http://blog.rubygems.org/2015/06/08/2.2.5-released.htmlcnnvd
- http://blog.rubygems.org/2015/06/08/2.4.8-released.htmlcnnvd
- http://www.securityfocus.com/bid/75431cnnvd
- https://github.com/rubygems/rubygems/commit/5c7bfb5cnnvd
- https://www.trustwave.com/Resources/Security-Advisories/Advisories/TWSL2015-009/?fid=6478cnnvd
- https://www.trustwave.com/Resources/SpiderLabs-Blog/Attacking-Ruby-Gem-Security-with-CVE-2015-3900/cnnvd
- http://blog.rubygems.org/2015/06/08/2.2.5-released.htmlenisa_euvd
- http://blog.rubygems.org/2015/06/08/2.4.8-released.htmlenisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan