Skip to content
Smuggling / CRLF Advisory Advanced CVE-2025-6442

Ruby WEBrick read_header HTTP Request Smuggling Vulnerability

The read_headers method in Ruby WEBrick parses HTTP header terminators inconsistently, allowing a remote attacker to smuggle arbitrary HTTP requests when the server sits behind a proxy that meets specific conditions.

yadhukrishnam Follow

Originally disclosed on Zero Day Initiative

Medium 6.5 View original

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.

yadhukrishnam, on the Zero Day Initiative

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the read_headers method accepts header line terminators in a way that differs from how an upstream HTTP proxy delimits requests, creating a parser differential.

Impact

An attacker could smuggle arbitrary HTTP requests through a front-end proxy, potentially reaching other users or backend systems, but only when the product is deployed behind a proxy that fulfils specific conditions.

What the attacker needed

WEBrick behind a specific HTTP proxy

The fix

Ruby issued an update to correct the inconsistent header terminator parsing in WEBrick.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

HTTP requests are made of lines, and the server and any proxy in front of it must agree on where one request ends and the next begins. Here WEBrick disagreed with the proxy about header line endings, so an attacker could hide a second request inside the first and have it processed unexpectedly.

What is Smuggling / CRLF?

A front end and a back end split one connection's bytes into requests differently, letting an attacker hide a request inside another user's.

More by yadhukrishnam

View all

1 more disclosed report, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Request smuggling and header injection

The lesson behind this report.

A front end and a back end split one connection's bytes into requests differently, letting an attacker hide a request inside another user's.