CVE-2024-47220: HTTP Request Smuggling in ruby webrick
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."
Published Sep 22, 2024 · Updated Sep 25, 2024
Affected packages
webrick
- Ecosystem
- RubyGems
- Affected
- <= 1.8.1
- Fixed in
- 1.8.2
- Check
bundle info webrick
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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."
Credited to renatolond, bermannoah.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-47220
- https://github.com/ruby/webrick/issues/145
- https://github.com/ruby/webrick/pull/146/commits/d88321da45dcd230ac2b4585cad4833d6d5e8841
- https://github.com/ruby/webrick/commit/f5faca9222541591e1a7c3c97552ebb0c92733c7
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/webrick/CVE-2024-47220.yml
- https://github.com/ruby/webrick/issues/145#issuecomment-2369994610
- https://github.com/ruby/webrick/issues/145#issuecomment-2372838285
- https://github.com/advisories/GHSA-6f62-3596-g6w7
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
