Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. webrick
  4. ›
  5. CVE-2024-47220

CVE-2024-47220: HTTP Request Smuggling in ruby webrick

September 22, 2024 (updated September 25, 2024)

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.”

References

  • github.com/advisories/GHSA-6f62-3596-g6w7
  • github.com/ruby/webrick
  • github.com/ruby/webrick/commit/f5faca9222541591e1a7c3c97552ebb0c92733c7
  • github.com/ruby/webrick/issues/145
  • github.com/ruby/webrick/issues/145
  • github.com/ruby/webrick/issues/145
  • github.com/ruby/webrick/pull/146/commits/d88321da45dcd230ac2b4585cad4833d6d5e8841
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/webrick/CVE-2024-47220.yml
  • nvd.nist.gov/vuln/detail/CVE-2024-47220

Code Behaviors & Features

Detect and mitigate CVE-2024-47220 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.8.2

Fixed versions

  • 1.8.2

Solution

Upgrade to version 1.8.2 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')

Source file

gem/webrick/CVE-2024-47220.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:00 +0000.