HighGHSA-369m-2gv6-mw28CVE-2017-10784
WEBrick RCE Vulnerability
Published 14 May 2022 · Updated 13 Mar 2024
Is your project on an affected webrick?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
webrickRubyGems
- Affected
- <1.4.0
- Fixed in
- 1.4.0
Update to the fixed version for your release line, for example:
bundle update --conservative webrick # Gemfile: '>= 1.4.0'Details
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.
Is GHSA-369m-2gv6-mw28 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected webrick, and gives you the command that fixes it.
More advisories for webrick
- MediumCVE-2025-6442Ruby WEBrick read_headers method can lead to HTTP Request/Response Smuggling · 26 Jun 2025
- HighCVE-2024-47220HTTP Request Smuggling in ruby webrick · 22 Sept 2024
- HighCVE-2020-25613WEBRick vulnerable to HTTP Request/Response Smuggling · 24 May 2022
- HighCVE-2008-4310WEBrick Denial of Service Vulnerability · 2 May 2022
- MediumCVE-2009-4492WEBrick Improper Input Validation vulnerability · 24 Oct 2017
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2017-10784
- Linkgithub.com/ruby/ruby/commit/6617c41292
- Linkgithub.com/ruby/webrick/commit/4ac0f3843ab82d1c31e1cfc719409208adef7813
- Linkhackerone.com/reports/223363
- Linkwww.ruby-lang.org/en/news/2017/09/14/webrick-basic-auth-escape-sequence-injection-cve-2017-10784
- Linkwww.ruby-lang.org/en/news/2017/09/14/ruby-2-3-5-released
- Linkwww.ruby-lang.org/en/news/2017/09/14/ruby-2-2-8-released
- Linkwww.debian.org/security/2017/dsa-4031
- Linkweb.archive.org/web/20211025092552/http://www.securitytracker.com/id/1039363
- Linkweb.archive.org/web/20210919031115/http://www.securitytracker.com/id/1042004
- Linkweb.archive.org/web/20210621131814/http://www.securityfocus.com/bid/100853
- Linkusn.ubuntu.com/3685-1
- Linkusn.ubuntu.com/3528-1
- Linksecurity.gentoo.org/glsa/201710-18
- Linklists.debian.org/debian-lts-announce/2018/07/msg00012.html
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/webrick/CVE-2017-10784.yml
- Packagegithub.com/ruby/webrick
- Linkaccess.redhat.com/errata/RHSA-2018:0585
- Linkaccess.redhat.com/errata/RHSA-2018:0583
- Linkaccess.redhat.com/errata/RHSA-2018:0378
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.