MediumGHSA-r995-q44h-hr64CVE-2025-6442

Ruby WEBrick read_headers method can lead to HTTP Request/Response Smuggling

Published 26 Jun 2025 · Updated 30 Jun 2025

Is your project on an affected webrick?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

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.8.2
Fixed in
1.8.2
Update to the fixed version for your release line, for example:bundle update --conservative webrick # Gemfile: '>= 1.8.2'

Details

Ruby WEBrick read_header HTTP Request Smuggling Vulnerability. This vulnerability allows remote attackers to smuggle arbitrary HTTP requests on affected installations of Ruby WEBrick. This issue is exploitable when the product is deployed behind an HTTP proxy that fulfills specific conditions.

The specific flaw exists within the read_headers method. The issue results from the inconsistent parsing of terminators of HTTP headers. An attacker can leverage this vulnerability to smuggle arbitrary HTTP requests. Was ZDI-CAN-21876.

Is GHSA-r995-q44h-hr64 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

  • HighCVE-2024-47220HTTP Request Smuggling in ruby webrick · 22 Sept 2024
  • 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
webrick security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.