HTTP Request Smuggling Vulnerability in Ruby WEBrick

ruby-webrick Updated 02 Oct 2025

Summary

25/06/2025
N/A
No i
Medium
5.9

CVE-2025-6442: Ruby WEBrick read_header HTTP Request Smuggling Vulnerability. Affects ruby-webrick versions < ee60354bcb84ec33b9245e1d1aa6e1f7e8132101. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Ruby WEBrick is a simple HTTP server toolkit that is part of the Ruby standard library. It is designed to provide a lightweight server for serving web applications and is often used in development environments. Despite its simplicity, WEBrick is capable of handling HTTP requests and responses, making it a useful tool for developers. However, it is vulnerable to an HTTP request smuggling issue that can be exploited under certain conditions, particularly when deployed behind an HTTP proxy.

Vulnerability Detail

The vulnerability, identified as CVE-2025-6442, arises from a flaw in the read_headers method of Ruby WEBrick. This flaw leads to inconsistent parsing of HTTP header terminators, allowing remote attackers to smuggle arbitrary HTTP requests. The implications of this vulnerability are significant, as it can enable attackers to bypass security measures, manipulate server behavior, and potentially gain unauthorized access to sensitive data or systems.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, consider deploying Ruby WEBrick behind a more secure HTTP proxy that can mitigate the effects of this vulnerability. Additionally, ensure that your server is configured to validate and sanitize incoming HTTP requests to prevent potential exploitation.

Conclusion

The Ruby WEBrick HTTP request smuggling vulnerability (CVE-2025-6442) poses significant risks to applications using this toolkit. It is crucial to update to the patched versions of the package and implement security measures to protect against potential exploitation.

See every vulnerability recorded for ruby-webrick →

Share this vulnerability

FAQ

CVE-2025-6442 is a vulnerability in Ruby WEBrick that allows remote attackers to perform HTTP request smuggling due to inconsistent parsing of HTTP header terminators.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which allows you to monitor and alert for open-source vulnerabilities without requiring access to the code.

The risks include unauthorized access to sensitive data, manipulation of server behavior, and potential bypassing of security measures, leading to further exploitation.

Yes, a patch is available. For Debian 12 and 13, ensure you update to the latest version or at least version 1.9.1-1 for Debian 13.

If immediate updates are not possible, consider implementing a secure HTTP proxy and validating incoming requests to mitigate the risk of exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for ruby-webrick.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback