ruby: Escape sequence injection vulnerability in the Basic authentication of WEBrick
Published Sep 19, 2017
8.8
HIGHCVSS 3.0
EPSS 16.41%
Description
The Basic authentication code in WEBrick library in Ruby before 2.2.8, 2.3.x before 2.3.5, and 2.4.x through 2.4.1 allows remote attackers to inject terminal emulator escape sequences into its log and possibly execute arbitrary commands via a crafted user name.
Affected products
No data.
- ≤ 2.2.7
- 2.3.0
- 2.3.0
- 2.3.0
- 2.3.1
- 2.3.2
- 2.3.3
- 2.3.4
- 2.4.0
- 2.4.0
- 2.4.0
- 2.4.0
- 2.4.0
- 2.4.1
No data.
Red Hat Enterprise Linux 7
ruby-0:2.0.0.648-33.el7_4
Fixed · RHSA-2018:0378
Red Hat Hardened Images
ruby3-3-main-3.3.10-23.1.hum1
Fixed · RHSA-2026:7305
Red Hat Hardened Images
ruby3-4-main-3.4.8-31.1.hum1
Fixed · RHSA-2026:7307
Red Hat Hardened Images
ruby4-0-main-4.0.0-33.3.hum1
Fixed · RHSA-2026:8838
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
CloudForms Management Engine 5
rh-ruby22-ruby
Not affected
CloudForms Management Engine 5
ruby-200-ruby
Not affected
Red Hat Enterprise Linux 5
ruby
Will not fix
Red Hat Enterprise Linux 6
ruby
Will not fix
Red Hat Hardened Images
ruby
Affected
Red Hat Subscription Asset Manager
ruby193-ruby
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 | ruby-0:2.0.0.648-33.el7_4 | Fixed | RHSA-2018:0378 |
| Red Hat Hardened Images | ruby3-3-main-3.3.10-23.1.hum1 | Fixed | RHSA-2026:7305 |
| Red Hat Hardened Images | ruby3-4-main-3.4.8-31.1.hum1 | Fixed | RHSA-2026:7307 |
| Red Hat Hardened Images | ruby4-0-main-4.0.0-33.3.hum1 | Fixed | RHSA-2026:8838 |
| 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 |
| CloudForms Management Engine 5 | rh-ruby22-ruby | Not affected | n/a |
| CloudForms Management Engine 5 | ruby-200-ruby | Not affected | n/a |
| Red Hat Enterprise Linux 5 | ruby | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | ruby | Will not fix | n/a |
| Red Hat Hardened Images | ruby | Affected | n/a |
| Red Hat Subscription Asset Manager | ruby193-ruby | Will not fix | 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 5, 6, and 7, as well as the versions of rh-ruby22-ruby and rh-ruby23-ruby as shipped with Red Hat Software Collections 3. 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:R/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:L
AV:N/AC:M/Au:N/C:C/I:C/A:C
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 (28 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 16.41% (0.16412) | 96.89th | v5 (v2026.06.15) |
| Jun 15, 2026 | 16.41% (0.16412) | 96.56th | v5 (v2026.06.15) |
| Mar 4, 2026 | 1.39% (0.01385) | 80.04th | v4 (v2025.03.14) |
| Mar 1, 2026 | 2.79% (0.02791) | 85.89th | v4 (v2025.03.14) |
| Feb 4, 2026 | 1.39% (0.01385) | 79.97th | v4 (v2025.03.14) |
| Feb 1, 2026 | 2.79% (0.02791) | 85.78th | v4 (v2025.03.14) |
| Jan 4, 2026 | 1.39% (0.01385) | 79.89th | v4 (v2025.03.14) |
| Jan 1, 2026 | 2.79% (0.02791) | 85.72th | v4 (v2025.03.14) |
| Oct 27, 2025 | 1.75% (0.01755) | 81.96th | v4 (v2025.03.14) |
| Jul 30, 2025 | 2.78% (0.02777) | 85.48th | v4 (v2025.03.14) |
| May 30, 2025 | 1.74% (0.01741) | 81.57th | v4 (v2025.03.14) |
| May 21, 2025 | 2.95% (0.02948) | 85.78th | v4 (v2025.03.14) |
| Mar 30, 2025 | 1.86% (0.01865) | 81.45th | v4 (v2025.03.14) |
| Mar 29, 2025 | 9.15% (0.09148) | 87.67th | v4 (v2025.03.14) |
| Mar 17, 2025 | 1.86% (0.01865) | 81.87th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.83% (0.00826) | 82.65th | v3 (v2023.03.01) |
| Jun 28, 2024 | 0.83% (0.00826) | 82.06th | v3 (v2023.03.01) |
| Dec 24, 2023 | 0.83% (0.00826) | 80.06th | v3 (v2023.03.01) |
| Jul 8, 2023 | 1.15% (0.01152) | 82.89th | v3 (v2023.03.01) |
| May 8, 2023 | 1.61% (0.01607) | 85.48th | v3 (v2023.03.01) |
| Mar 7, 2023 | 1.60% (0.01599) | 85.37th | v3 (v2023.03.01) |
| Mar 6, 2023 | 3.41% (0.03407) | 84.65th | v2 (v2022.01.01) |
| Apr 1, 2022 | 3.41% (0.03407) | 83.10th | v2 (v2022.01.01) |
| Feb 4, 2022 | 3.41% (0.03407) | 66.20th | v2 (v2022.01.01) |
| Feb 3, 2022 | 7.40% (0.07403) | 83.89th | v1 |
| Jan 6, 2022 | 7.40% (0.07403) | 83.73th | v1 |
| Sep 1, 2021 | 7.40% (0.07403) | 91.40th | v1 |
| Apr 14, 2021 | 7.40% (0.07403) | 0.00th | v1 |
References (27)
- http://www.securityfocus.com/bid/100853 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- http://www.securitytracker.com/id/1039363 vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry
- http://www.securitytracker.com/id/1042004 vdb-entryx_refsource_SECTRACK
- https://access.redhat.com/errata/RHSA-2017:3485 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2018:0378 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2018:0583 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2018:0585 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2017-10784 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1492012 Issue Tracking
- https://github.com/advisories/GHSA-369m-2gv6-mw28 Advisory
- https://github.com/ruby/ruby/commit/6617c41292
- https://github.com/ruby/webrick/commit/4ac0f3843ab82d1c31e1cfc719409208adef7813
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/webrick/CVE-2017-10784.yml
- https://hackerone.com/reports/223363
- https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html mailing-listx_refsource_MLIST
- https://nvd.nist.gov/vuln/detail/CVE-2017-10784
- https://security.gentoo.org/glsa/201710-18 vendor-advisoryx_refsource_GENTOO
- https://usn.ubuntu.com/3528-1/ vendor-advisoryx_refsource_UBUNTU
- https://usn.ubuntu.com/3685-1/ vendor-advisoryx_refsource_UBUNTU
- https://web.archive.org/web/20210621131814/http://www.securityfocus.com/bid/100853
- https://web.archive.org/web/20210919031115/http://www.securitytracker.com/id/1042004
- https://web.archive.org/web/20211025092552/http://www.securitytracker.com/id/1039363
- https://www.cve.org/CVERecord?id=CVE-2017-10784
- https://www.debian.org/security/2017/dsa-4031 vendor-advisoryx_refsource_DEBIAN
- https://www.ruby-lang.org/en/news/2017/09/14/ruby-2-2-8-released/ x_refsource_CONFIRMPatchVendor Advisory
- https://www.ruby-lang.org/en/news/2017/09/14/ruby-2-3-5-released/ x_refsource_CONFIRMPatchVendor Advisory
- https://www.ruby-lang.org/en/news/2017/09/14/webrick-basic-auth-escape-sequence-injection-cve-2017-10784/ x_refsource_CONFIRMVendor Advisory
Change history (0)
No recorded changes yet.