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…
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
- CWE
- CWE-254
Report tools
Action score
23
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.
Is your version affected? Check itNoroxi 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 helpAffected 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.
| Vendor | Product | CPE |
|---|---|---|
| rubygems | rubygems | cpe:2.3:a:rubygems:rubygems |
| ruby-lang | ruby | cpe:2.3:a:ruby-lang:ruby |
| oracle | solaris | cpe:2.3:o:oracle:solaris |
| redhat | enterprise linux | cpe:2.3:o:redhat:enterprise_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
+12 more rows
- 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.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | jruby | before 1.7.20.1-2 | 1.7.20.1-2 |
| openSUSE:Tumbleweed | ruby2.2 | before 2.2.5-1.5 | 2.2.5-1.5 |
| openSUSE:Tumbleweed | ruby2.3 | before 2.3.1-1.6 | 2.3.1-1.6 |
| Red Hat:rhel_software_collections:2::el6 | rh-ruby22-ruby | before 0:2.2.2-12.el6 | 0:2.2.2-12.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-ruby22-ruby-debuginfo | before 0:2.2.2-12.el6 | 0:2.2.2-12.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-ruby22-ruby-devel | before 0:2.2.2-12.el6 | 0:2.2.2-12.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-ruby22-ruby-doc | before 0:2.2.2-12.el6 | 0:2.2.2-12.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-ruby22-ruby-irb | before 0:2.2.2-12.el6 | 0:2.2.2-12.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-ruby22-ruby-libs | before 0:2.2.2-12.el6 | 0:2.2.2-12.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-ruby22-ruby-tcltk | before 0:2.2.2-12.el6 | 0:2.2.2-12.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-ruby22-rubygem-bigdecimal | before 0:1.2.6-12.el6 | 0:1.2.6-12.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-ruby22-rubygem-io-console | before 0:0.4.3-12.el6 | 0:0.4.3-12.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-ruby22-rubygem-json | before 0:1.8.1-12.el6 | 0:1.8.1-12.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-ruby22-rubygem-minitest | before 0:5.4.3-12.el6 | 0:5.4.3-12.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-ruby22-rubygem-power_assert | before 0:0.2.2-12.el6 | 0:0.2.2-12.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-ruby22-rubygem-psych | before 0:2.0.8-12.el6 | 0:2.0.8-12.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-ruby22-rubygem-rake | before 0:10.4.2-12.el6 | 0:10.4.2-12.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-ruby22-rubygem-rdoc | before 0:4.2.0-12.el6 | 0:4.2.0-12.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-ruby22-rubygem-test-unit | before 0:3.0.8-12.el6 | 0:3.0.8-12.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-ruby22-rubygems | before 0:2.4.5-12.el6 | 0:2.4.5-12.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-ruby22-rubygems-devel | before 0:2.4.5-12.el6 | 0:2.4.5-12.el6 |
| Red Hat:rhel_software_collections:2::el7 | rh-ruby22-ruby | before 0:2.2.2-12.el7 | 0:2.2.2-12.el7 |
| Red Hat:rhel_software_collections:2::el7 | rh-ruby22-ruby-debuginfo | before 0:2.2.2-12.el7 | 0:2.2.2-12.el7 |
| Red Hat:rhel_software_collections:2::el7 | rh-ruby22-ruby-devel | before 0:2.2.2-12.el7 | 0:2.2.2-12.el7 |
+19
Same product
rubygems: all recordsOther 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 / package | Fixed version | Source |
|---|---|---|
| debian:jruby | 1.7.20.1-2 · Debian:12 | Package registry (OSV) |
| opensuse:ruby2.2 | 2.2.5-1.5 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:ruby2.3 | 2.3.1-1.6 · openSUSE:Tumbleweed | Package registry (OSV) |
| red hat:rh-ruby22-ruby | 0:2.2.2-12.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-ruby22-ruby-debuginfo | 0:2.2.2-12.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-ruby22-ruby-devel | 0:2.2.2-12.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-ruby22-ruby-doc | 0:2.2.2-12.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-ruby22-ruby-irb | 0:2.2.2-12.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-ruby22-ruby-libs | 0:2.2.2-12.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-ruby22-ruby-tcltk | 0:2.2.2-12.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-ruby22-rubygem-bigdecimal | 0:1.2.6-12.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-ruby22-rubygem-io-console | 0:0.4.3-12.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-ruby22-rubygem-json | 0:1.8.1-12.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-ruby22-rubygem-minitest | 0:5.4.3-12.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-ruby22-rubygem-power_assert | 0:0.2.2-12.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| RubyGems:rubygems-update | 2.0.16 | Package registry (OSV) |
| RubyGems:rubygems-update | 2.2.4 | Package registry (OSV) |
| RubyGems:rubygems-update | 2.4.7 | Package registry (OSV) |
| suse:ruby2.1 | 2.1.9-15.1 · SUSE:Linux Enterprise Desktop 12 SP1 | Package 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
Weakness class (CWE)
CWE-254 · 7PK - Security FeaturesCVSS 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
Show all references (10 more)Show less
- lists.fedoraproject.org/pipermail/package-announce/2015-August/163502.html
- lists.fedoraproject.org/pipermail/package-announce/2015-August/163600.html
- lists.fedoraproject.org/pipermail/package-announce/2015-August/164236.html
- rhn.redhat.com/errata/RHSA-2015-1657.html
- www.openwall.com/lists/oss-security/2015/06/26/2
- www.oracle.com/technetwork/topics/security/bulletinoct2015-2511968.html
- www.securityfocus.com/bid/75482
- puppet.com/security/cve/CVE-2015-3900
- www.trustwave.com/Resources/Security-Advisories/Advisories/TWSL2015-007/?fid=6356
- www.trustwave.com/Resources/SpiderLabs-Blog/Attacking-Ruby-Gem-Security-with-CVE-2015-3900/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.