rubygems: Escape sequence in the "summary" field of gemspec
Published Aug 31, 2017
9.8
CRITICALCVSS 3.0
EPSS 11.10%
Description
RubyGems version 2.6.12 and earlier is vulnerable to maliciously crafted gem specifications that include terminal escape characters. Printing the gem specification would execute terminal escape sequences.
Affected products
-
- Version Versions before 2.6.13StatusaffectedConstraints-
- Version
Configuration 2
- 8.0
- 9.0
Configuration 3
- 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 Low 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:H/I:H/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
AV:N/AC:L/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 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 (60 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 11.10% (0.11102) | 95.80th | v5 (v2026.06.15) |
| Jun 15, 2026 | 10.81% (0.10810) | 95.27th | v5 (v2026.06.15) |
| May 22, 2026 | 9.53% (0.09533) | 92.95th | v4 (v2025.03.14) |
| Mar 4, 2026 | 7.36% (0.07362) | 91.55th | v4 (v2025.03.14) |
| Mar 1, 2026 | 2.17% (0.02165) | 84.08th | v4 (v2025.03.14) |
| Feb 4, 2026 | 7.36% (0.07362) | 91.49th | v4 (v2025.03.14) |
| Feb 1, 2026 | 2.17% (0.02165) | 83.98th | v4 (v2025.03.14) |
| Jan 4, 2026 | 7.36% (0.07362) | 91.43th | v4 (v2025.03.14) |
| Jan 1, 2026 | 2.17% (0.02165) | 83.92th | v4 (v2025.03.14) |
| Dec 4, 2025 | 7.36% (0.07362) | 91.34th | v4 (v2025.03.14) |
| Dec 1, 2025 | 2.17% (0.02165) | 83.83th | v4 (v2025.03.14) |
| Nov 4, 2025 | 7.36% (0.07362) | 91.29th | v4 (v2025.03.14) |
| Nov 1, 2025 | 2.17% (0.02165) | 83.79th | v4 (v2025.03.14) |
| Oct 26, 2025 | 7.36% (0.07362) | 91.27th | v4 (v2025.03.14) |
| Oct 4, 2025 | 9.67% (0.09672) | 92.60th | v4 (v2025.03.14) |
| Oct 1, 2025 | 2.17% (0.02165) | 83.73th | v4 (v2025.03.14) |
| Sep 4, 2025 | 9.67% (0.09672) | 92.62th | v4 (v2025.03.14) |
| Sep 1, 2025 | 2.17% (0.02165) | 83.72th | v4 (v2025.03.14) |
| Aug 4, 2025 | 9.67% (0.09672) | 92.57th | v4 (v2025.03.14) |
| Aug 1, 2025 | 2.17% (0.02165) | 83.71th | v4 (v2025.03.14) |
| Jul 13, 2025 | 9.67% (0.09672) | 92.53th | v4 (v2025.03.14) |
| Jul 5, 2025 | 11.57% (0.11571) | 93.30th | v4 (v2025.03.14) |
| Jul 1, 2025 | 2.65% (0.02646) | 85.17th | v4 (v2025.03.14) |
| Jun 6, 2025 | 10.83% (0.10829) | 92.97th | v4 (v2025.03.14) |
| Jun 4, 2025 | 20.67% (0.20666) | 95.26th | v4 (v2025.03.14) |
| Jun 1, 2025 | 4.50% (0.04497) | 88.61th | v4 (v2025.03.14) |
| May 30, 2025 | 20.67% (0.20666) | 95.25th | v4 (v2025.03.14) |
| May 21, 2025 | 6.01% (0.06009) | 90.18th | v4 (v2025.03.14) |
| May 4, 2025 | 12.40% (0.12397) | 93.49th | v4 (v2025.03.14) |
| May 1, 2025 | 2.06% (0.02061) | 82.96th | v4 (v2025.03.14) |
| Apr 13, 2025 | 12.40% (0.12397) | 93.29th | v4 (v2025.03.14) |
| Apr 12, 2025 | 20.67% (0.20666) | 95.12th | v4 (v2025.03.14) |
| Apr 11, 2025 | 12.69% (0.12689) | 93.39th | v4 (v2025.03.14) |
| Apr 10, 2025 | 2.89% (0.02893) | 85.18th | v4 (v2025.03.14) |
| Apr 7, 2025 | 12.69% (0.12689) | 93.38th | v4 (v2025.03.14) |
| Apr 6, 2025 | 2.89% (0.02893) | 85.16th | v4 (v2025.03.14) |
| Apr 3, 2025 | 12.69% (0.12689) | 93.38th | v4 (v2025.03.14) |
| Apr 2, 2025 | 2.89% (0.02893) | 85.14th | v4 (v2025.03.14) |
| Mar 30, 2025 | 12.69% (0.12689) | 93.37th | v4 (v2025.03.14) |
| Mar 29, 2025 | 29.43% (0.29425) | 94.64th | v4 (v2025.03.14) |
| Mar 27, 2025 | 12.69% (0.12689) | 92.99th | v4 (v2025.03.14) |
| Mar 25, 2025 | 2.89% (0.02893) | 85.02th | v4 (v2025.03.14) |
| Mar 24, 2025 | 12.69% (0.12689) | 93.35th | v4 (v2025.03.14) |
| Mar 22, 2025 | 2.89% (0.02893) | 85.17th | v4 (v2025.03.14) |
| Mar 21, 2025 | 12.69% (0.12689) | 93.44th | v4 (v2025.03.14) |
| Mar 20, 2025 | 2.89% (0.02893) | 85.18th | v4 (v2025.03.14) |
| Mar 17, 2025 | 12.69% (0.12689) | 93.43th | v4 (v2025.03.14) |
| Dec 17, 2024 | 1.43% (0.01433) | 86.32th | v3 (v2023.03.01) |
| Dec 5, 2023 | 2.01% (0.02010) | 87.59th | v3 (v2023.03.01) |
| Oct 27, 2023 | 2.79% (0.02785) | 89.46th | v3 (v2023.03.01) |
| May 8, 2023 | 3.00% (0.02995) | 89.39th | v3 (v2023.03.01) |
| Apr 20, 2023 | 3.02% (0.03017) | 89.42th | v3 (v2023.03.01) |
| Mar 7, 2023 | 4.08% (0.04084) | 90.78th | 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 | 2.88% (0.02880) | 63.65th | v1 |
| Jan 6, 2022 | 2.88% (0.02880) | 63.31th | v1 |
| Sep 1, 2021 | 2.88% (0.02880) | 80.71th | v1 |
| Apr 14, 2021 | 2.88% (0.02880) | 0.00th | v1 |
References (20)
- http://blog.rubygems.org/2017/08/27/2.6.13-released.html x_refsource_MISCPatchVendor Advisory
- http://www.securityfocus.com/bid/100576 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-0899 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1487590 Issue Tracking
- https://github.com/advisories/GHSA-7gcp-2gmq-w3xh Advisory
- https://github.com/rubygems/rubygems/commit/1bcbc7fe637b03145401ec9c094066285934a7f1 x_refsource_MISCPatchThird Party Advisory
- https://github.com/rubygems/rubygems/commit/ef0aa611effb5f54d40c7fba6e8235eb43c5a491 x_refsource_MISCPatchThird Party Advisory
- https://hackerone.com/reports/226335 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-0899
- https://security.gentoo.org/glsa/201710-01 vendor-advisoryx_refsource_GENTOOThird 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/100576#:~:text=1%20snapshot-,11%3A49%3A33,-Note
- https://www.cve.org/CVERecord?id=CVE-2017-0899
- https://www.debian.org/security/2017/dsa-3966 vendor-advisoryx_refsource_DEBIANThird Party Advisory
Change history (0)
No recorded changes yet.