rubygems: Arbitrary file overwrite due to incorrect validation of specification name
Published Aug 31, 2017
7.5
HIGHCVSS 3.0
EPSS 28.74%
Description
RubyGems version 2.6.12 and earlier fails to validate specification names, allowing a maliciously crafted gem to potentially overwrite any file on the filesystem.
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:L/PR:N/UI:N/S:U/C:N/I:H/A:N
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
AV:N/AC:L/Au:N/C:N/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 1, 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 (64 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 28.74% (0.28737) | 98.09th | v5 (v2026.06.15) |
| Sep 22, 2026 | 29.44% (0.29442) | 98.10th | v5 (v2026.06.15) |
| Sep 21, 2026 | 26.30% (0.26296) | 97.96th | v5 (v2026.06.15) |
| Sep 6, 2026 | 29.44% (0.29442) | 98.06th | v5 (v2026.06.15) |
| Sep 5, 2026 | 26.30% (0.26296) | 97.91th | v5 (v2026.06.15) |
| Aug 30, 2026 | 29.44% (0.29442) | 98.05th | v5 (v2026.06.15) |
| Aug 28, 2026 | 26.30% (0.26296) | 97.90th | v5 (v2026.06.15) |
| Aug 24, 2026 | 29.44% (0.29442) | 98.03th | v5 (v2026.06.15) |
| Aug 23, 2026 | 26.30% (0.26296) | 97.90th | v5 (v2026.06.15) |
| Jun 15, 2026 | 29.44% (0.29442) | 97.94th | v5 (v2026.06.15) |
| May 22, 2026 | 20.64% (0.20638) | 95.67th | v4 (v2025.03.14) |
| Mar 4, 2026 | 18.55% (0.18555) | 95.13th | v4 (v2025.03.14) |
| Mar 1, 2026 | 15.28% (0.15282) | 94.51th | v4 (v2025.03.14) |
| Feb 4, 2026 | 18.55% (0.18555) | 95.07th | v4 (v2025.03.14) |
| Feb 1, 2026 | 15.28% (0.15282) | 94.47th | v4 (v2025.03.14) |
| Jan 4, 2026 | 18.55% (0.18555) | 95.03th | v4 (v2025.03.14) |
| Jan 1, 2026 | 11.85% (0.11851) | 93.53th | v4 (v2025.03.14) |
| Dec 4, 2025 | 18.55% (0.18555) | 95.00th | v4 (v2025.03.14) |
| Dec 1, 2025 | 11.85% (0.11851) | 93.49th | v4 (v2025.03.14) |
| Nov 4, 2025 | 18.55% (0.18555) | 94.98th | v4 (v2025.03.14) |
| Nov 1, 2025 | 11.85% (0.11851) | 93.47th | v4 (v2025.03.14) |
| Oct 4, 2025 | 18.55% (0.18555) | 95.01th | v4 (v2025.03.14) |
| Oct 1, 2025 | 11.85% (0.11851) | 93.50th | v4 (v2025.03.14) |
| Sep 4, 2025 | 18.95% (0.18953) | 95.09th | v4 (v2025.03.14) |
| Sep 1, 2025 | 15.63% (0.15626) | 94.48th | v4 (v2025.03.14) |
| Aug 4, 2025 | 18.55% (0.18555) | 94.99th | v4 (v2025.03.14) |
| Aug 1, 2025 | 15.28% (0.15282) | 94.36th | v4 (v2025.03.14) |
| Jul 6, 2025 | 18.55% (0.18555) | 94.94th | v4 (v2025.03.14) |
| Jul 1, 2025 | 15.28% (0.15282) | 94.33th | v4 (v2025.03.14) |
| Jun 29, 2025 | 18.55% (0.18555) | 94.94th | v4 (v2025.03.14) |
| Jun 6, 2025 | 17.47% (0.17475) | 94.70th | v4 (v2025.03.14) |
| Jun 5, 2025 | 36.21% (0.36211) | 96.89th | v4 (v2025.03.14) |
| Jun 1, 2025 | 29.43% (0.29431) | 96.36th | v4 (v2025.03.14) |
| May 30, 2025 | 36.21% (0.36211) | 96.90th | v4 (v2025.03.14) |
| May 21, 2025 | 17.11% (0.17110) | 94.62th | v4 (v2025.03.14) |
| May 4, 2025 | 24.39% (0.24390) | 95.76th | v4 (v2025.03.14) |
| May 1, 2025 | 17.11% (0.17106) | 94.63th | v4 (v2025.03.14) |
| Apr 13, 2025 | 24.39% (0.24390) | 95.67th | v4 (v2025.03.14) |
| Apr 12, 2025 | 29.43% (0.29431) | 96.22th | v4 (v2025.03.14) |
| Apr 9, 2025 | 19.69% (0.19694) | 94.96th | v4 (v2025.03.14) |
| Apr 8, 2025 | 16.14% (0.16141) | 94.26th | v4 (v2025.03.14) |
| Mar 30, 2025 | 19.69% (0.19694) | 94.95th | v4 (v2025.03.14) |
| Mar 29, 2025 | 22.17% (0.22174) | 93.18th | v4 (v2025.03.14) |
| Mar 25, 2025 | 19.69% (0.19694) | 94.91th | v4 (v2025.03.14) |
| Mar 24, 2025 | 16.14% (0.16141) | 94.22th | v4 (v2025.03.14) |
| Mar 21, 2025 | 19.69% (0.19694) | 94.98th | v4 (v2025.03.14) |
| Mar 20, 2025 | 16.14% (0.16141) | 94.30th | v4 (v2025.03.14) |
| Mar 19, 2025 | 19.69% (0.19694) | 94.73th | v4 (v2025.03.14) |
| Mar 18, 2025 | 16.14% (0.16141) | 94.35th | v4 (v2025.03.14) |
| Mar 17, 2025 | 19.69% (0.19694) | 94.96th | v4 (v2025.03.14) |
| Dec 17, 2024 | 2.89% (0.02888) | 90.52th | v3 (v2023.03.01) |
| Jun 21, 2024 | 0.88% (0.00879) | 82.58th | v3 (v2023.03.01) |
| Dec 5, 2023 | 0.88% (0.00879) | 80.58th | v3 (v2023.03.01) |
| Oct 27, 2023 | 0.90% (0.00898) | 80.90th | v3 (v2023.03.01) |
| May 8, 2023 | 0.80% (0.00799) | 79.10th | v3 (v2023.03.01) |
| Apr 20, 2023 | 0.68% (0.00679) | 77.00th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.60% (0.00605) | 75.26th | v3 (v2023.03.01) |
| Mar 6, 2023 | 18.33% (0.18327) | 96.32th | v2 (v2022.01.01) |
| Apr 1, 2022 | 18.33% (0.18327) | 95.99th | v2 (v2022.01.01) |
| Feb 4, 2022 | 18.33% (0.18327) | 93.57th | v2 (v2022.01.01) |
| Feb 3, 2022 | 13.21% (0.13208) | 89.07th | v1 |
| Jan 6, 2022 | 13.21% (0.13208) | 88.94th | v1 |
| Sep 1, 2021 | 13.21% (0.13208) | 96.01th | v1 |
| Apr 14, 2021 | 13.21% (0.13208) | 0.00th | v1 |
References (22)
- http://blog.rubygems.org/2017/08/27/2.6.13-released.html x_refsource_MISCPatchVendor Advisory
- http://www.securityfocus.com/bid/100580 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-0901 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1487587 Issue Tracking
- https://github.com/advisories/GHSA-pm9x-4392-2c2p Advisory
- https://github.com/rubygems/rubygems/commit/ad5c0a53a86ca5b218c7976765c0365b91d22cb2 x_refsource_MISCPatchThird Party Advisory
- https://hackerone.com/reports/243156 x_refsource_MISCExploitPatchThird 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-0901
- 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/20170907215801/http://www.securitytracker.com/id/1039249
- https://web.archive.org/web/20170915000000*/http://www.securityfocus.com/bid/100580#:~:text=1%20snapshot-,16%3A05%3A26,-Note
- https://www.cve.org/CVERecord?id=CVE-2017-0901
- https://www.debian.org/security/2017/dsa-3966 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- https://www.exploit-db.com/exploits/42611/ exploitx_refsource_EXPLOIT-DBThird Party AdvisoryVDB Entry
Change history (0)
No recorded changes yet.