CVE-2015-3900

Description

RubyGems 2.0.x before 2.0.16, 2.2.x before 2.2.4, and 2.4.x before 2.4.7 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, aka a "DNS hijack attack."

Severity
not scored
CVSS v3
not scored
Exploit chance (EPSS)
8.871%
chance of exploitation in the next 30 days
higher than 95.3% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0

Weakness

Timeline

  1. 2015-06-24Published by the CNA14:00 UTC
  2. 2022-05-14GitHub advisory published (GHSA-wp3j-rvfp-624h)2516 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-wp3j-rvfp-624h, affected packages:

PackageVulnerable versionsFixed in
RubyGems rubygems-updatefrom 2.0.0 before 2.0.162.0.16
RubyGems rubygems-updatefrom 2.2.0 before 2.2.42.2.4
RubyGems rubygems-updatefrom 2.4.0 before 2.4.72.4.7

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
ruby-lang ruby1.9no fix listed1.9.1no fix listed1.9.2no fix listed1.9.3no fix listed2.0.0no fix listed(+7 more)not listednot listednot listednot listednot listed
rubygems rubygems2.0.0no fix listed2.0.1no fix listed2.0.10no fix listed2.0.11no fix listed2.0.12no fix listed(+22 more)not listednot listednot listednot listednot listed
oracle solaris11.3no fix listednot listed
redhat enterprise_linux6.0no fix listed7.0no fix listednot listednot listed

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources