Skip to content
Noroxi
CVE-2015-3900· NVD / CVE Program· CNA mitre

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 req

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."

MediumCVSS 5.0 · v2.0—No exploit Fix available

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for the hundreds of thousands of vulnerabilities in the database; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help
Published
Jun 24, 2015
Updated
Jun 16, 2026
EPSS
8.9% · 95th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

23

Monitor

Low priority for now.

CVSS
20 / 40 · 5.0 / 10
CISA KEV
0 / 30 · Not listed
EPSS
3 / 30 · 8.9%

Affected systems

VendorProduct
rubygemsrubygems
ruby-langruby
oraclesolaris
redhatenterprise linux

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • oracle solaris11.3
  • redhat enterprise linux6.0
  • redhat enterprise linux7.0
  • ruby-lang ruby1.9
  • ruby-lang ruby1.9.1
  • ruby-lang ruby1.9.2
  • ruby-lang ruby1.9.3
  • ruby-lang ruby2.0.0
  • ruby-lang ruby2.1
  • ruby-lang ruby2.1.1
  • ruby-lang ruby2.1.2
  • ruby-lang ruby2.1.3
  • ruby-lang ruby2.1.4
  • ruby-lang ruby2.1.5
  • ruby-lang ruby2.2.0
  • rubygems rubygems2.0.0
  • rubygems rubygems2.0.1
  • rubygems rubygems2.0.10
  • rubygems rubygems2.0.11
  • rubygems rubygems2.0.12

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:12jrubybefore 1.7.20.1-21.7.20.1-2
openSUSE:Tumbleweedruby2.2before 2.2.5-1.52.2.5-1.5
openSUSE:Tumbleweedruby2.3before 2.3.1-1.62.3.1-1.6
Red Hat:rhel_software_collections:2::el6rh-ruby22-rubybefore 0:2.2.2-12.el60:2.2.2-12.el6
Red Hat:rhel_software_collections:2::el6rh-ruby22-ruby-debuginfobefore 0:2.2.2-12.el60:2.2.2-12.el6
Red Hat:rhel_software_collections:2::el6rh-ruby22-ruby-develbefore 0:2.2.2-12.el60:2.2.2-12.el6
Red Hat:rhel_software_collections:2::el6rh-ruby22-ruby-docbefore 0:2.2.2-12.el60:2.2.2-12.el6
Red Hat:rhel_software_collections:2::el6rh-ruby22-ruby-irbbefore 0:2.2.2-12.el60:2.2.2-12.el6
Red Hat:rhel_software_collections:2::el6rh-ruby22-ruby-libsbefore 0:2.2.2-12.el60:2.2.2-12.el6
Red Hat:rhel_software_collections:2::el6rh-ruby22-ruby-tcltkbefore 0:2.2.2-12.el60:2.2.2-12.el6
Red Hat:rhel_software_collections:2::el6rh-ruby22-rubygem-bigdecimalbefore 0:1.2.6-12.el60:1.2.6-12.el6
Red Hat:rhel_software_collections:2::el6rh-ruby22-rubygem-io-consolebefore 0:0.4.3-12.el60:0.4.3-12.el6
Red Hat:rhel_software_collections:2::el6rh-ruby22-rubygem-jsonbefore 0:1.8.1-12.el60:1.8.1-12.el6
Red Hat:rhel_software_collections:2::el6rh-ruby22-rubygem-minitestbefore 0:5.4.3-12.el60:5.4.3-12.el6
Red Hat:rhel_software_collections:2::el6rh-ruby22-rubygem-power_assertbefore 0:0.2.2-12.el60:0.2.2-12.el6
Red Hat:rhel_software_collections:2::el6rh-ruby22-rubygem-psychbefore 0:2.0.8-12.el60:2.0.8-12.el6
Red Hat:rhel_software_collections:2::el6rh-ruby22-rubygem-rakebefore 0:10.4.2-12.el60:10.4.2-12.el6
Red Hat:rhel_software_collections:2::el6rh-ruby22-rubygem-rdocbefore 0:4.2.0-12.el60:4.2.0-12.el6
Red Hat:rhel_software_collections:2::el6rh-ruby22-rubygem-test-unitbefore 0:3.0.8-12.el60:3.0.8-12.el6
Red Hat:rhel_software_collections:2::el6rh-ruby22-rubygemsbefore 0:2.4.5-12.el60:2.4.5-12.el6
Red Hat:rhel_software_collections:2::el6rh-ruby22-rubygems-develbefore 0:2.4.5-12.el60:2.4.5-12.el6
Red Hat:rhel_software_collections:2::el7rh-ruby22-rubybefore 0:2.2.2-12.el70:2.2.2-12.el7
Red Hat:rhel_software_collections:2::el7rh-ruby22-ruby-debuginfobefore 0:2.2.2-12.el70:2.2.2-12.el7
Red Hat:rhel_software_collections:2::el7rh-ruby22-ruby-develbefore 0:2.2.2-12.el70:2.2.2-12.el7

+19

Other highest-scoring records for the same primary product.

  • CVE-2017-0903RubyGems versions between 2.0.0 and 2.6.13 are vulnerable to a possible remote code execution vulnerability.
    44Plan
  • CVE-2017-0899RubyGems version 2.6.12 and earlier is vulnerable to maliciously crafted gem specifications that include terminal escape characters.
    42Plan
  • CVE-2018-1000076RubyGems version Ruby 2.2 series: 2.2.9 and earlier, Ruby 2.3 series: 2.3.6 and earlier, Ruby 2.4 series: 2.4.3 and earlier, Ruby 2.5 series
    40Plan
  • CVE-2017-0901RubyGems version 2.6.12 and earlier fails to validate specification names, allowing a maliciously crafted gem to potentially overwrite any f
    39Monitor
  • CVE-2019-8324An issue was discovered in RubyGems 2.6 and later through 3.0.2.
    36Monitor
  • CVE-2022-36073RubyGems allows creation of users with arbitrary unverified emails
    35Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
debian:jruby1.7.20.1-2 · Debian:12Package registry (OSV)
opensuse:ruby2.22.2.5-1.5 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:ruby2.32.3.1-1.6 · openSUSE:TumbleweedPackage registry (OSV)
red hat:rh-ruby22-ruby0:2.2.2-12.el6 · Red Hat:rhel_software_collections:2::el6Package registry (OSV)
red hat:rh-ruby22-ruby-debuginfo0:2.2.2-12.el6 · Red Hat:rhel_software_collections:2::el6Package registry (OSV)
red hat:rh-ruby22-ruby-devel0:2.2.2-12.el6 · Red Hat:rhel_software_collections:2::el6Package registry (OSV)
red hat:rh-ruby22-ruby-doc0:2.2.2-12.el6 · Red Hat:rhel_software_collections:2::el6Package registry (OSV)
red hat:rh-ruby22-ruby-irb0:2.2.2-12.el6 · Red Hat:rhel_software_collections:2::el6Package registry (OSV)
red hat:rh-ruby22-ruby-libs0:2.2.2-12.el6 · Red Hat:rhel_software_collections:2::el6Package registry (OSV)
red hat:rh-ruby22-ruby-tcltk0:2.2.2-12.el6 · Red Hat:rhel_software_collections:2::el6Package registry (OSV)
red hat:rh-ruby22-rubygem-bigdecimal0:1.2.6-12.el6 · Red Hat:rhel_software_collections:2::el6Package registry (OSV)
red hat:rh-ruby22-rubygem-io-console0:0.4.3-12.el6 · Red Hat:rhel_software_collections:2::el6Package registry (OSV)
red hat:rh-ruby22-rubygem-json0:1.8.1-12.el6 · Red Hat:rhel_software_collections:2::el6Package registry (OSV)
red hat:rh-ruby22-rubygem-minitest0:5.4.3-12.el6 · Red Hat:rhel_software_collections:2::el6Package registry (OSV)
red hat:rh-ruby22-rubygem-power_assert0:0.2.2-12.el6 · Red Hat:rhel_software_collections:2::el6Package registry (OSV)
RubyGems:rubygems-update2.0.16Package registry (OSV)
RubyGems:rubygems-update2.2.4Package registry (OSV)
RubyGems:rubygems-update2.4.7Package registry (OSV)
suse:ruby2.12.1.9-15.1 · SUSE:Linux Enterprise Desktop 12 SP1Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.

Technical details

Attack conditions

  • No special conditions are required; it is repeatable.

If successful

Confidentiality
none
Integrity
P · data or configuration can be modified
Availability
none
Attack complexity
Low
Confidentiality impact
None
Integrity impact
P
Availability impact
None

CVSS vector

AV:N/AC:L/Au:N/C:N/I:P/A:N

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records