rubygems: DNS hijacking vulnerability
Published Aug 31, 2017
8.1
HIGHCVSS 3.0
EPSS 4.73%
Description
RubyGems version 2.6.12 and earlier is vulnerable to a DNS hijacking vulnerability that allows a MITM attacker to force the RubyGems client to download and install gems from a server that the attacker controls.
Affected products
-
- Version Versions before 2.6.13StatusaffectedConstraints-
- Version
Configuration 2
- 8.0
- 9.0
Configuration 3
- 14.04
- 16.04
- 17.10
Configuration 4
- 7.0
- 7.0
- 7.4
- 7.6
- 7.4
- 7.5
- 7.6
- 7.4
- 7.6
- 7.0
No data.
Red Hat Enterprise Linux 7
ruby-0:2.0.0.648-33.el7_4
Fixed · RHSA-2018:0378
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-ruby22-ruby-0:2.2.9-19.el6
Fixed · RHSA-2018:0583
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-ruby23-ruby-0:2.3.6-67.el6
Fixed · RHSA-2018:0585
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-ruby24-ruby-0:2.4.2-86.el6
Fixed · RHSA-2017:3485
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-ruby22-ruby-0:2.2.9-19.el6
Fixed · RHSA-2018:0583
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-ruby23-ruby-0:2.3.6-67.el6
Fixed · RHSA-2018:0585
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-ruby24-ruby-0:2.4.2-86.el6
Fixed · RHSA-2017:3485
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-ruby22-ruby-0:2.2.9-19.el7
Fixed · RHSA-2018:0583
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-ruby23-ruby-0:2.3.6-67.el7
Fixed · RHSA-2018:0585
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-ruby24-ruby-0:2.4.2-86.el7
Fixed · RHSA-2017:3485
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
rh-ruby22-ruby-0:2.2.9-19.el7
Fixed · RHSA-2018:0583
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
rh-ruby23-ruby-0:2.3.6-67.el7
Fixed · RHSA-2018:0585
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
rh-ruby24-ruby-0:2.4.2-86.el7
Fixed · RHSA-2017:3485
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-ruby22-ruby-0:2.2.9-19.el7
Fixed · RHSA-2018:0583
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-ruby23-ruby-0:2.3.6-67.el7
Fixed · RHSA-2018:0585
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-ruby24-ruby-0:2.4.2-86.el7
Fixed · RHSA-2017:3485
Red Hat Enterprise Linux 6
rubygems
Will not fix
Red Hat Enterprise MRG 2
rubygems
Under investigation
Red Hat Satellite 6
rubygems
Under investigation
Red Hat Subscription Asset Manager
ruby193-rubygems
Under investigation
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 | ruby-0:2.0.0.648-33.el7_4 | Fixed | RHSA-2018:0378 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-ruby22-ruby-0:2.2.9-19.el6 | Fixed | RHSA-2018:0583 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-ruby23-ruby-0:2.3.6-67.el6 | Fixed | RHSA-2018:0585 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-ruby24-ruby-0:2.4.2-86.el6 | Fixed | RHSA-2017:3485 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-ruby22-ruby-0:2.2.9-19.el6 | Fixed | RHSA-2018:0583 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-ruby23-ruby-0:2.3.6-67.el6 | Fixed | RHSA-2018:0585 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-ruby24-ruby-0:2.4.2-86.el6 | Fixed | RHSA-2017:3485 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-ruby22-ruby-0:2.2.9-19.el7 | Fixed | RHSA-2018:0583 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-ruby23-ruby-0:2.3.6-67.el7 | Fixed | RHSA-2018:0585 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-ruby24-ruby-0:2.4.2-86.el7 | Fixed | RHSA-2017:3485 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS | rh-ruby22-ruby-0:2.2.9-19.el7 | Fixed | RHSA-2018:0583 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS | rh-ruby23-ruby-0:2.3.6-67.el7 | Fixed | RHSA-2018:0585 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS | rh-ruby24-ruby-0:2.4.2-86.el7 | Fixed | RHSA-2017:3485 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-ruby22-ruby-0:2.2.9-19.el7 | Fixed | RHSA-2018:0583 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-ruby23-ruby-0:2.3.6-67.el7 | Fixed | RHSA-2018:0585 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-ruby24-ruby-0:2.4.2-86.el7 | Fixed | RHSA-2017:3485 |
| Red Hat Enterprise Linux 6 | rubygems | Will not fix | n/a |
| Red Hat Enterprise MRG 2 | rubygems | Under investigation | n/a |
| Red Hat Satellite 6 | rubygems | Under investigation | n/a |
| Red Hat Subscription Asset Manager | ruby193-rubygems | Under investigation | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue affects the versions of ruby as shipped with Red Hat Enterprise Linux 6, and 7 and the versions of rh-ruby22-ruby and rh-ruby23-ruby as shipped with Red Hat Software Collections. Red Hat Product Security has rated this issue as having Moderate security impact. A future update may address this issue. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
AV:N/AC:M/Au:N/C:P/I:P/A:P
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 3, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (53 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 3, 2026 | 4.73% (0.04729) | 91.58th | v5 (v2026.06.15) |
| Jun 15, 2026 | 4.75% (0.04750) | 90.69th | v5 (v2026.06.15) |
| Mar 4, 2026 | 5.21% (0.05207) | 89.74th | v4 (v2025.03.14) |
| Mar 1, 2026 | 2.12% (0.02118) | 83.91th | v4 (v2025.03.14) |
| Feb 4, 2026 | 5.21% (0.05207) | 89.66th | v4 (v2025.03.14) |
| Feb 1, 2026 | 2.12% (0.02118) | 83.81th | v4 (v2025.03.14) |
| Jan 16, 2026 | 5.21% (0.05207) | 89.62th | v4 (v2025.03.14) |
| Jan 4, 2026 | 3.39% (0.03392) | 87.04th | v4 (v2025.03.14) |
| Jan 1, 2026 | 1.36% (0.01359) | 79.82th | v4 (v2025.03.14) |
| Dec 4, 2025 | 3.39% (0.03392) | 86.97th | v4 (v2025.03.14) |
| Dec 1, 2025 | 1.36% (0.01359) | 79.66th | v4 (v2025.03.14) |
| Nov 4, 2025 | 3.39% (0.03392) | 86.89th | v4 (v2025.03.14) |
| Nov 1, 2025 | 1.36% (0.01359) | 79.61th | v4 (v2025.03.14) |
| Oct 26, 2025 | 3.39% (0.03392) | 86.87th | v4 (v2025.03.14) |
| Oct 4, 2025 | 4.54% (0.04536) | 88.69th | v4 (v2025.03.14) |
| Oct 1, 2025 | 1.36% (0.01359) | 79.57th | v4 (v2025.03.14) |
| Sep 23, 2025 | 4.54% (0.04536) | 88.73th | v4 (v2025.03.14) |
| Sep 4, 2025 | 7.08% (0.07081) | 91.18th | v4 (v2025.03.14) |
| Sep 1, 2025 | 2.18% (0.02176) | 83.77th | v4 (v2025.03.14) |
| Aug 4, 2025 | 6.91% (0.06906) | 91.01th | v4 (v2025.03.14) |
| Aug 1, 2025 | 2.12% (0.02118) | 83.51th | v4 (v2025.03.14) |
| Jul 5, 2025 | 6.91% (0.06906) | 90.94th | v4 (v2025.03.14) |
| Jul 1, 2025 | 2.12% (0.02118) | 83.41th | v4 (v2025.03.14) |
| Jun 4, 2025 | 6.02% (0.06024) | 90.22th | v4 (v2025.03.14) |
| Jun 1, 2025 | 1.96% (0.01961) | 82.63th | v4 (v2025.03.14) |
| May 30, 2025 | 6.02% (0.06024) | 90.21th | v4 (v2025.03.14) |
| May 21, 2025 | 2.07% (0.02066) | 83.00th | v4 (v2025.03.14) |
| May 5, 2025 | 3.22% (0.03219) | 86.34th | v4 (v2025.03.14) |
| May 1, 2025 | 0.87% (0.00866) | 73.99th | v4 (v2025.03.14) |
| Apr 13, 2025 | 3.22% (0.03219) | 85.97th | v4 (v2025.03.14) |
| Apr 12, 2025 | 6.82% (0.06817) | 90.50th | v4 (v2025.03.14) |
| Mar 30, 2025 | 5.56% (0.05564) | 89.33th | v4 (v2025.03.14) |
| Mar 29, 2025 | 12.38% (0.12384) | 89.79th | v4 (v2025.03.14) |
| Mar 26, 2025 | 5.56% (0.05564) | 89.25th | v4 (v2025.03.14) |
| Mar 25, 2025 | 1.66% (0.01657) | 80.26th | v4 (v2025.03.14) |
| Mar 24, 2025 | 5.56% (0.05564) | 89.35th | v4 (v2025.03.14) |
| Mar 22, 2025 | 1.66% (0.01657) | 80.43th | v4 (v2025.03.14) |
| Mar 21, 2025 | 5.56% (0.05564) | 89.45th | v4 (v2025.03.14) |
| Mar 20, 2025 | 1.66% (0.01657) | 80.44th | v4 (v2025.03.14) |
| Mar 17, 2025 | 5.56% (0.05564) | 89.59th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.75% (0.00753) | 81.70th | v3 (v2023.03.01) |
| May 3, 2024 | 0.75% (0.00753) | 80.90th | v3 (v2023.03.01) |
| Dec 5, 2023 | 0.75% (0.00753) | 78.87th | v3 (v2023.03.01) |
| May 8, 2023 | 1.05% (0.01051) | 81.82th | v3 (v2023.03.01) |
| Apr 20, 2023 | 1.10% (0.01101) | 82.31th | v3 (v2023.03.01) |
| Mar 7, 2023 | 1.34% (0.01338) | 83.97th | v3 (v2023.03.01) |
| Mar 6, 2023 | 2.69% (0.02686) | 82.85th | v2 (v2022.01.01) |
| Apr 1, 2022 | 2.69% (0.02686) | 81.17th | v2 (v2022.01.01) |
| Feb 4, 2022 | 2.69% (0.02686) | 62.66th | v2 (v2022.01.01) |
| Feb 3, 2022 | 3.08% (0.03080) | 65.20th | v1 |
| Jan 6, 2022 | 3.08% (0.03080) | 64.86th | v1 |
| Sep 1, 2021 | 3.08% (0.03080) | 81.27th | v1 |
| Apr 14, 2021 | 3.08% (0.03080) | 0.00th | v1 |
References (21)
- http://blog.rubygems.org/2017/08/27/2.6.13-released.html x_refsource_MISCPatchVendor Advisory
- http://www.securityfocus.com/bid/100586 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- http://www.securitytracker.com/id/1039249 vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2017:3485 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:0378 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:0583 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:0585 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2017-0902 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1487589 Issue Tracking
- https://github.com/advisories/GHSA-73w7-6w9g-gc8w Advisory
- https://github.com/rubygems/rubygems/commit/8d91516fb7037ecfb27622f605dc40245e0f8d32 x_refsource_MISCExploitPatchThird Party Advisory
- https://hackerone.com/reports/218088 x_refsource_MISCExploitIssue TrackingThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2017-0902
- https://security.gentoo.org/glsa/201710-01 vendor-advisoryx_refsource_GENTOOThird Party Advisory
- https://usn.ubuntu.com/3553-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://usn.ubuntu.com/3685-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://web.archive.org/web/20170907040741/http://www.securityfocus.com/bid/100586
- https://web.archive.org/web/20170907215801/http://www.securitytracker.com/id/1039249
- https://www.cve.org/CVERecord?id=CVE-2017-0902
- https://www.debian.org/security/2017/dsa-3966 vendor-advisoryx_refsource_DEBIANThird Party Advisory
Change history (0)
No recorded changes yet.