rubygems: incomplete fix for CVE-2015-3900
Published Aug 25, 2015
4.3
MEDIUMCVSS 2.0
EPSS 3.46%
Description
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 requests, which allows remote attackers to redirect requests to arbitrary domains via a crafted DNS SRV record with a domain that is suffixed with the original domain name, aka a "DNS hijack attack." NOTE: this vulnerability exists because to an incomplete fix for CVE-2015-3900.
Affected products
No data.
Configuration 2
- 2.0.0
- 2.0.0
- 2.0.0
- 2.0.0
- 2.0.0
- 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.0.16
- 2.2.0
- 2.2.1
- 2.2.2
- 2.2.3
- 2.2.4
- 2.4.0
- 2.4.1
- 2.4.2
- 2.4.3
- 2.4.4
- 2.4.5
- 2.4.6
- 2.4.7
No data.
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
Not affected
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
rh-ruby22-ruby
Not affected
Red Hat Software Collections
ruby193-ruby
Not affected
Red Hat Software Collections
ruby200-ruby
Not affected
Red Hat Subscription Asset Manager
ruby193-ruby
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| 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 | Not affected | 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 | rh-ruby22-ruby | Not affected | n/a |
| Red Hat Software Collections | ruby193-ruby | Not affected | n/a |
| Red Hat Software Collections | ruby200-ruby | Not affected | 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 the packages did not include the incomplete fix. This issue did not affect the versions of ruby as shipped with Red Hat Enterprise Linux 5, 6 and 7, Red Hat Subscription Asset Manager and Red Hat Software Collections, as the packages did not include the incomplete fix.
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:M/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 (11 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 3.46% (0.03461) | 88.65th | v5 (v2026.06.15) |
| Jun 15, 2026 | 3.46% (0.03461) | 87.47th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.54% (0.00542) | 65.71th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.64% (0.00637) | 79.85th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.64% (0.00637) | 78.48th | v3 (v2023.03.01) |
| Apr 12, 2023 | 0.64% (0.00637) | 76.01th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.60% (0.00596) | 75.05th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.41% (0.01408) | 72.89th | v2 (v2022.01.01) |
| Mar 2, 2023 | 1.41% (0.01408) | 72.88th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.41% (0.01408) | 70.87th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.41% (0.01408) | 49.94th | v2 (v2022.01.01) |
References (16)
- http://blog.rubygems.org/2015/06/08/2.2.5-released.html x_refsource_CONFIRMVendor Advisory
- http://blog.rubygems.org/2015/06/08/2.4.8-released.html x_refsource_CONFIRMVendor Advisory
- http://www.oracle.com/technetwork/topics/security/bulletinoct2015-2511968.html x_refsource_CONFIRMThird Party Advisory
- http://www.securityfocus.com/bid/75431 vdb-entryx_refsource_BID
- https://access.redhat.com/security/cve/CVE-2015-4020 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1250109 Issue Tracking
- https://github.com/advisories/GHSA-qv62-xfj6-32xm Advisory
- https://github.com/rubygems/rubygems/commit/5c7bfb5 x_refsource_CONFIRM
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rubygems-update/CVE-2015-4020.yml
- https://nvd.nist.gov/vuln/detail/CVE-2015-4020
- https://puppet.com/security/cve/CVE-2015-3900 x_refsource_CONFIRM
- https://web.archive.org/web/20200228084212/http://www.securityfocus.com/bid/75431
- https://web.archive.org/web/20200228085830/https://puppet.com/security/cve/CVE-2015-3900
- https://www.cve.org/CVERecord?id=CVE-2015-4020
- https://www.trustwave.com/Resources/Security-Advisories/Advisories/TWSL2015-009/?fid=6478 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.