VDB
Sign up
MEDIUM6.5

GHSA-r995-q44h-hr64

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

Quick fix

GHSA-r995-q44h-hr64 — webrick: upgrade to the fixed version with the command below.

bundle update webrick

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

RubyGems/webrick
Introduced in: 0Fixed in: 1.8.2
Fixbundle update webrick

References