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."
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
- CWE
- CWE-254
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
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
| 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
- 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 series40Plan
- CVE-2017-0901RubyGems version 2.6.12 and earlier fails to validate specification names, allowing a maliciously crafted gem to potentially overwrite any f39Monitor
- 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 emails35Monitor
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.
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.
Credits
All researchersFinders, 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
- RubyHackerOne · paid
- RubyGemsHackerOne · disclosure only (VDP) · rubygems/rubygems
- RubyGemsHackerOne · disclosure only (VDP)
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
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
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- blog.rubygems.org/2015/05/14/CVE-2015-3900.html
- 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.