Skip to content
Noroxi
NVD / CVE Program· CNA mitre

CVE-2015-3900: 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…

MediumCVSS 5.0 · v2.0—No exploit Fix available

Noroxi assessment

Priority: Monitor (action score 23/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 8.8% (FIRST EPSS); higher than 95.2% of all records.
  • No special conditions are required; it is repeatable.
  • Fixed version: jruby (Debian:12) 1.7.20.1-2; ruby2.2 (openSUSE:Tumbleweed) 2.2.5-1.5; ruby2.3 (openSUSE:Tumbleweed) 2.3.1-1.6.

Low priority for now. Upgrade to jruby (Debian:12) 1.7.20.1-2; ruby2.2 (openSUSE:Tumbleweed) 2.2.5-1.5; ruby2.3 (openSUSE:Tumbleweed) 2.3.1-1.6 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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

Published
Jun 24, 2015
Updated
Jun 16, 2026
EPSS
8.8% · 95th percentile

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.8%

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2015-3900

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools
Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

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

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…
    40Plan

Published before and after this one in the same product

  • ← EarlierCVE-2013-4287Oct 17, 2013 · Algorithmic complexity vulnerability in Gem::Version::VERSION_PATTERN in lib/rubygems/version.rb in RubyGems before 1.8.23.1, 1.8.24…
    18Monitor
  • ← EarlierCVE-2013-4363Oct 17, 2013 · Algorithmic complexity vulnerability in Gem::Version::ANCHORED_VERSION_PATTERN in lib/rubygems/version.rb in RubyGems before 1.8.23.2…
    18Monitor
  • Later →CVE-2015-4020Aug 25, 2015 · 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…
    18Monitor

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.

Bug bounty scope

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

Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate.

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.

References

All records