CVE-2025-6442 — Vulnerability in webrick — CVE Details
Ruby WEBrick read_headers method can lead to HTTP Request/Response Smuggling
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.58%). Schedule for your next planned update.
Does your project use an affected webrick version?
Paste your Gemfile.lock to check it for CVE-2025-6442 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published June 26, 2025 (518 days ago).
- Last revised June 30, 2025 — 4 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install webrick -v 1.8.2
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: RubyGems (1).
| Package | Fixed In |
|---|---|
| webrick RubyGems · Affected: 1.3.1, 1.4.0, 1.4.0.beta1, 1.4.1 (+10 more) | 1.8.2 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-444
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 6.5 score means for each attack dimension.
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-6442ADVISORY
- https://github.com/ruby/webrick/commit/ee60354bcb84ec33b9245e1d1aa6e1f7e8132101#diff-ad02984d873efb089aa51551bc6b7d307a53e0ba1ac439e91d69c2e58a478864WEB
- https://github.com/ruby/webrickPACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/webrick/CVE-2025-6442.ymlWEB
- https://www.zerodayinitiative.com/advisories/ZDI-25-414WEB
Frequently Asked Questions
- What is CVE-2025-6442?
- Ruby WEBrick read_headers method can lead to HTTP Request/Response Smuggling. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.5/10).
- How do I check if my project is affected by CVE-2025-6442?
- CVE-2025-6442 affects webrick. It has a 0.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-6442 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is a below-median EPSS score — only 41.4% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2017-10784HIGH
WEBrick RCE Vulnerability
- CVE-2024-47220HIGH
HTTP Request Smuggling in ruby webrick
- CVE-2020-25613HIGH
WEBRick vulnerable to HTTP Request/Response Smuggling
- CVE-2026-128084MEDIUM
sqlite3-ruby: Possible SQL query truncation when a string is 4 GiB or larger
- CVE-2026-115472MEDIUM
Doorkeeper: When using public clients, any client can revoke any access token