Vulnerabilities in pkg:gem/webrick
PACKAGECVE-2025-6442 is a MODERATE (CVSS 6.5) ruby webrick read_headers method can vulnerability (CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')) affecting Webrick libraries in the RubyGems ecosystem. The issue involves ruby webrick read_headers method can lead to http request/response smuggling. Remediation is available by upgrading affected packages to version 1.8.2.
pkg:gem/webrick
Vulnerability advisories affecting package pkg:gem/webrick. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-r995-q44h-hr64 | CVE-2025-6442 | MODERATE | Ruby WEBrick read_headers method can lead to HTTP Request/Response Smuggling |
| GHSA-gwfg-cqmg-cf8f | CVE-2020-25613 | HIGH | WEBRick vulnerable to HTTP Request/Response Smuggling |
| GHSA-6mq2-37j5-w6r6 | CVE-2009-4492 | MODERATE | WEBrick Improper Input Validation vulnerability |
| GHSA-6f62-3596-g6w7 | CVE-2024-47220 | HIGH | HTTP Request Smuggling in ruby webrick |
| GHSA-wfrc-r6c6-7j9r | CVE-2008-4310 | HIGH | WEBrick Denial of Service Vulnerability |
| GHSA-369m-2gv6-mw28 | CVE-2017-10784 | HIGH | WEBrick RCE Vulnerability |
CVE-2025-6442 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N).
How to Fix CVE-2025-6442
To remediate this vulnerability, upgrade all affected Webrick dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade webrick to 1.8.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for webrick
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-6442, inspect your project dependencies for Webrick:
inspect dependencies for webrick
Analyze the terminal output to locate any version of Webrick in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.8.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling'), where the product acts as an intermediary http agent (such as a proxy or firewall) in the data flow between two entities such as a client and server, but it does not interpret malformed http requests or responses in ways that are consistent with how the messages will be processed by those entities that are at the ultimate destination. In Webrick, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-6442 Affected Webrick Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
webrick
|
RubyGems |
< 1.8.2
|
1.8.2
|
References
Frequently Asked Questions
What is CVE-2025-6442?
Which Webrick versions are affected?
What version fixes CVE-2025-6442?
Is webrick affected?
What is the CVSS score of CVE-2025-6442?
What CWE is associated with CVE-2025-6442?
How can I check RubyGems dependencies for CVE-2025-6442?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-r995-q44h-hr64",
"modified" : "2025-06-30T12:53:53Z",
"published" : "2025-06-26T21:31:13Z",
"aliases" : [ "CVE-2025-6442" ],
"summary" : "Ruby WEBrick read_headers method can lead to HTTP Request/Response Smuggling",
"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.\n\nThe 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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "webrick"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.8.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-6442"
}, {
"type" : "WEB",
"url" : "https://github.com/ruby/webrick/commit/ee60354bcb84ec33b9245e1d1aa6e1f7e8132101#diff-ad02984d873efb089aa51551bc6b7d307a53e0ba1ac439e91d69c2e58a478864"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ruby/webrick"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/webrick/CVE-2025-6442.yml"
}, {
"type" : "WEB",
"url" : "https://www.zerodayinitiative.com/advisories/ZDI-25-414"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-444" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-06-27T21:58:15Z",
"nvd_published_at" : "2025-06-25T17:15:40Z"
}
}