HTTP Request Smuggling in ruby webrick
Published 22 Sept 2024 · Updated 10 Sept 2026
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
- Affected
- <1.8.2
- Fixed in
- 1.8.2
bundle update --conservative webrick # Gemfile: '>= 1.8.2'Details
An issue was discovered in the WEBrick toolkit through 1.8.1 for Ruby. It allows HTTP request smuggling by providing both a Content-Length header and a Transfer-Encoding header, e.g., "GET /admin HTTP/1.1\r\n" inside of a "POST /user HTTP/1.1\r\n" request. NOTE: the supplier's position is "Webrick should not be used in production."
Is GHSA-6f62-3596-g6w7 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-2020-25613WEBRick vulnerable to HTTP Request/Response Smuggling · 24 May 2022
- HighCVE-2017-10784WEBrick RCE Vulnerability · 14 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-2024-47220
- Linkgithub.com/ruby/webrick/issues/145
- Linkgithub.com/ruby/webrick/issues/145#issuecomment-2369994610
- Linkgithub.com/ruby/webrick/issues/145#issuecomment-2372838285
- Linkgithub.com/ruby/webrick/pull/146/commits/d88321da45dcd230ac2b4585cad4833d6d5e8841
- Linkgithub.com/ruby/webrick/commit/f5faca9222541591e1a7c3c97552ebb0c92733c7
- Packagegithub.com/ruby/webrick
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/webrick/CVE-2024-47220.yml
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.