rubygems: DNS hijacking vulnerability in api_endpoint()
Published Jun 24, 2015
5.0
MEDIUMCVSS 2.0
EPSS 8.93%
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."
Affected products
No data.
Configuration 1
- 1.9
- 1.9.1
- 1.9.2
- 1.9.3
- 2.0.0
- 2.1
- 2.1.1
- 2.1.2
- 2.1.3
- 2.1.4
- 2.1.5
- 2.2.0
Configuration 2
- 2.0.0
- 2.0.1
- 2.0.2
- 2.0.3
- 2.0.4
- 2.0.5
- 2.0.6
- 2.0.7
- 2.0.8
- 2.0.9
- 2.0.10
- 2.0.11
- 2.0.12
- 2.0.13
- 2.0.14
- 2.0.15
- 2.2.0
- 2.2.1
- 2.2.2
- 2.2.3
- 2.4.0
- 2.4.1
- 2.4.2
- 2.4.3
- 2.4.4
- 2.4.5
- 2.4.6
Configuration 4
- 6.0
- 7.0
No data.
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-ruby22-ruby-0:2.2.2-12.el6
Fixed · RHSA-2015:1657
Red Hat Software Collections for Red Hat Enterprise Linux 6.5 EUS
rh-ruby22-ruby-0:2.2.2-12.el6
Fixed · RHSA-2015:1657
Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS
rh-ruby22-ruby-0:2.2.2-12.el6
Fixed · RHSA-2015:1657
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-ruby22-ruby-0:2.2.2-12.el7
Fixed · RHSA-2015:1657
Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS
rh-ruby22-ruby-0:2.2.2-12.el7
Fixed · RHSA-2015:1657
CloudForms Management Engine 5
rubygems
Not affected
OpenStack Foreman
rubygems
Not affected
Red Hat Enterprise Linux 5
ruby
Not affected
Red Hat Enterprise Linux 6
ruby
Not affected
Red Hat Enterprise Linux 6
rubygems
Not affected
Red Hat Enterprise Linux 7
ruby
Will not fix
Red Hat Enterprise Linux OpenStack Platform 5 (Icehouse)
rubygems
Not affected
Red Hat Enterprise MRG 2
rubygems
Not affected
Red Hat OpenShift Enterprise 2
rubygems
Not affected
Red Hat Satellite 6
rubygems
Not affected
Red Hat Software Collections
ruby193-ruby
Not affected
Red Hat Software Collections
ruby200-ruby
Will not fix
Red Hat Subscription Asset Manager
ruby193-ruby
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-ruby22-ruby-0:2.2.2-12.el6 | Fixed | RHSA-2015:1657 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.5 EUS | rh-ruby22-ruby-0:2.2.2-12.el6 | Fixed | RHSA-2015:1657 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS | rh-ruby22-ruby-0:2.2.2-12.el6 | Fixed | RHSA-2015:1657 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-ruby22-ruby-0:2.2.2-12.el7 | Fixed | RHSA-2015:1657 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS | rh-ruby22-ruby-0:2.2.2-12.el7 | Fixed | RHSA-2015:1657 |
| CloudForms Management Engine 5 | rubygems | Not affected | n/a |
| OpenStack Foreman | rubygems | Not affected | n/a |
| Red Hat Enterprise Linux 5 | ruby | Not affected | n/a |
| Red Hat Enterprise Linux 6 | ruby | Not affected | n/a |
| Red Hat Enterprise Linux 6 | rubygems | Not affected | n/a |
| Red Hat Enterprise Linux 7 | ruby | Will not fix | n/a |
| Red Hat Enterprise Linux OpenStack Platform 5 (Icehouse) | rubygems | Not affected | n/a |
| Red Hat Enterprise MRG 2 | rubygems | Not affected | n/a |
| Red Hat OpenShift Enterprise 2 | rubygems | Not affected | n/a |
| Red Hat Satellite 6 | rubygems | Not affected | n/a |
| Red Hat Software Collections | ruby193-ruby | Not affected | n/a |
| Red Hat Software Collections | ruby200-ruby | Will not fix | n/a |
| Red Hat Subscription Asset Manager | ruby193-ruby | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue did not affect the versions of rubygems as shipped with Red Hat Enterprise Linux 6, Red Hat Enterprise MRG 2.5, Red Hat Satellite 6, Red Hat Openstack 5, Red Hat Openshift Enterprise 2 as they did not include support for getting API endpoint using SRV DNS records. This issue did not affect the versions of ruby as shipped with Red Hat Enterprise Linux 5 and 6 as they did not include support for getting API endpoint using SRV DNS records. The issue did not affect version of ruby as shipped with Red Hat Enterprise Linux 7, as the support for getting API endpoint using SRV DNS records is included, but inactive. This issue did not affect the versions of ruby193-ruby as shipped with Red Hat Subscription Asset Manager and Red Hat Software Collections as they did not include support for getting API endpoint using SRV DNS records. The issue did not affect version of ruby200-ruby as shipped with Red Hat Software Collections, as the support for getting API endpoint using SRV DNS records is included, but inactive.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:L/Au:N/C:N/I:P/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (12 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 8.93% (0.08934) | 95.09th | v5 (v2026.06.15) |
| Jun 15, 2026 | 8.93% (0.08934) | 94.56th | v5 (v2026.06.15) |
| Aug 26, 2025 | 3.19% (0.03187) | 86.46th | v4 (v2025.03.14) |
| Mar 30, 2025 | 2.07% (0.02065) | 82.32th | v4 (v2025.03.14) |
| Mar 29, 2025 | 7.79% (0.07791) | 86.32th | v4 (v2025.03.14) |
| Mar 17, 2025 | 2.07% (0.02065) | 82.72th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.84% (0.00845) | 82.84th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.84% (0.00845) | 81.59th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.84% (0.00845) | 79.57th | v3 (v2023.03.01) |
| Mar 6, 2023 | 2.17% (0.02172) | 80.77th | v2 (v2022.01.01) |
| Apr 1, 2022 | 2.17% (0.02172) | 78.91th | v2 (v2022.01.01) |
| Feb 4, 2022 | 2.17% (0.02172) | 57.73th | v2 (v2022.01.01) |
References (19)
- http://blog.rubygems.org/2015/05/14/CVE-2015-3900.html x_refsource_CONFIRMPatchVendor Advisory
- http://lists.fedoraproject.org/pipermail/package-announce/2015-August/163502.html vendor-advisoryx_refsource_FEDORA
- http://lists.fedoraproject.org/pipermail/package-announce/2015-August/163600.html vendor-advisoryx_refsource_FEDORA
- http://lists.fedoraproject.org/pipermail/package-announce/2015-August/164236.html vendor-advisoryx_refsource_FEDORA
- http://rhn.redhat.com/errata/RHSA-2015-1657.html vendor-advisoryx_refsource_REDHATThird Party Advisory
- http://www.openwall.com/lists/oss-security/2015/06/26/2 mailing-listx_refsource_MLISTThird Party Advisory
- http://www.oracle.com/technetwork/topics/security/bulletinoct2015-2511968.html x_refsource_CONFIRMThird Party Advisory
- http://www.securityfocus.com/bid/75482 vdb-entryx_refsource_BID
- https://access.redhat.com/security/cve/CVE-2015-3900 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1236116 Issue Tracking
- https://github.com/advisories/GHSA-wp3j-rvfp-624h Advisory
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rubygems-update/CVE-2015-3900.yml
- https://nvd.nist.gov/vuln/detail/CVE-2015-3900
- https://puppet.com/security/cve/CVE-2015-3900 x_refsource_CONFIRM
- https://web.archive.org/web/20170331091241/https://puppet.com/security/cve/CVE-2015-3900
- https://web.archive.org/web/20200228055155/http://www.securityfocus.com/bid/75482
- https://www.cve.org/CVERecord?id=CVE-2015-3900
- https://www.trustwave.com/Resources/Security-Advisories/Advisories/TWSL2015-007/?fid=6356 x_refsource_MISCThird Party Advisory
- https://www.trustwave.com/Resources/SpiderLabs-Blog/Attacking-Ruby-Gem-Security-with-CVE-2015-3900/ x_refsource_MISCThird Party Advisory
Change history (0)
No recorded changes yet.