CVE-2017-10784 — Vulnerability in webrick — CVE Details
WEBrick RCE Vulnerability
What Should I Do?
Low-to-Moderate Risk
Exploitation probability is 16.41% in 30 days. Address in your next planned sprint.
Does your project use an affected webrick version?
Paste your Gemfile.lock to check it for CVE-2017-10784 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published May 14, 2022 (1657 days ago).
- Last revised March 13, 2024 — 669 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install webrick -v 1.4.0
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: RubyGems (1).
| Package | Fixed In |
|---|---|
| webrick RubyGems · Affected: 1.3.1, 1.4.0.beta1 | 1.4.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-287Improper AuthenticationMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-10784ADVISORY
- https://github.com/ruby/ruby/commit/6617c41292WEB
- https://github.com/ruby/webrick/commit/4ac0f3843ab82d1c31e1cfc719409208adef7813WEB
- https://hackerone.com/reports/223363WEB
- https://www.ruby-lang.org/en/news/2017/09/14/webrick-basic-auth-escape-sequence-injection-cve-2017-10784WEB
- https://www.ruby-lang.org/en/news/2017/09/14/ruby-2-3-5-releasedWEB
- https://www.ruby-lang.org/en/news/2017/09/14/ruby-2-2-8-releasedWEB
- https://www.debian.org/security/2017/dsa-4031WEB
- https://web.archive.org/web/20211025092552/http://www.securitytracker.com/id/1039363WEB
- https://web.archive.org/web/20210919031115/http://www.securitytracker.com/id/1042004WEB
- https://web.archive.org/web/20210621131814/http://www.securityfocus.com/bid/100853WEB
- https://usn.ubuntu.com/3685-1WEB
- https://usn.ubuntu.com/3528-1WEB
- https://security.gentoo.org/glsa/201710-18WEB
- https://lists.debian.org/debian-lts-announce/2018/07/msg00012.htmlWEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/webrick/CVE-2017-10784.ymlWEB
- https://github.com/ruby/webrickPACKAGE
- https://access.redhat.com/errata/RHSA-2018:0585WEB
- https://access.redhat.com/errata/RHSA-2018:0583WEB
- https://access.redhat.com/errata/RHSA-2018:0378WEB
- https://access.redhat.com/errata/RHSA-2017:3485WEB
Frequently Asked Questions
- What is CVE-2017-10784?
- WEBrick RCE Vulnerability. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
- How do I check if my project is affected by CVE-2017-10784?
- CVE-2017-10784 affects webrick. It has a 16.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2017-10784 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This places it in the top 5% of EPSS-scored vulnerabilities — 97.6% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.
Also Known As
Related CVEs
- CVE-2024-47220HIGH
HTTP Request Smuggling in ruby webrick
- CVE-2026-126366HIGH
msgpack-ruby JRuby decoder makes uncapped header-count allocations; a 5-byte message forces multi-GiB OOM
- CVE-2020-25613HIGH
WEBRick vulnerable to HTTP Request/Response Smuggling
- CVE-2026-126081HIGH
Action Pack: Possible Strong Parameters Bypass in Parameters#each_key
- CVE-2025-6442MEDIUM
Ruby WEBrick read_headers method can lead to HTTP Request/Response Smuggling