CVE-2025-6442
Ruby WEBrick read_header HTTP Request Smuggling Vulnerability
Reported by zdi · Published June 25, 2025
webrick is fixed in 1.8.2 (RubyGems)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| webrick | RubyGems | 1.8.2 |
| ruby3.2-rubygem-rexml | Amazon Linux | 3.3.9-184.amzn2023.0.2 |
| rubygem-rake | Amazon Linux | 0.9.6-36.amzn2.0.15 |
| ruby3.2-rubygem-bigdecimal | Amazon Linux | 3.1.3-184.amzn2023.0.2 |
| ruby3.2-rubygem-rss | Amazon Linux | 0.3.1-184.amzn2023.0.2 |
| rubygem-minitest | Amazon Linux | 4.3.2-36.amzn2.0.15 |
| ruby-tcltk | Amazon Linux | 2.0.0.648-36.amzn2.0.15 |
| ruby3.2-rubygems | Amazon Linux | 3.4.19-184.amzn2023.0.2 |
| ruby3.2-rubygem-bundler | Amazon Linux | 2.4.19-184.amzn2023.0.2 |
| ruby3.2-rubygem-rdoc | Amazon Linux | 6.5.1.1-184.amzn2023.0.2 |
| ruby3.2-rubygem-power_assert | Amazon Linux | 2.0.3-184.amzn2023.0.2 |
| rubygem-rdoc | Amazon Linux | 4.0.0-36.amzn2.0.15 |
10 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Ruby | WEBrick | 1.8.1 |
| amazon:2023 | ruby3.2-rubygem-rexml | 0 |
| amazon:2 | rubygem-rake | 0 |
| amazon:2023 | ruby3.2-rubygem-bigdecimal | 0 |
| amazon:2023 | ruby3.2-rubygem-rss | 0 |
| amazon:2 | rubygem-minitest | 0 |
| amazon:2 | ruby-tcltk | 0 |
| amazon:2023 | ruby3.2-rubygems | 0 |
| amazon:2023 | ruby3.2-rubygem-bundler | 0 |
| amazon:2023 | ruby3.2-rubygem-rdoc | 0 |
| amazon:2023 | ruby3.2-rubygem-power_assert | 0 |
| amazon:2 | rubygem-rdoc | 0 |
| amazon:2 | ruby-doc | 0 |
| amazon:2023 | ruby3.2-rubygem-psych | 0 |
| amazon:2023 | ruby3.2-bundled-gems | 0 |
| amazon:2023 | ruby3.2-rubygem-typeprof | 0 |
| amazon:2 | rubygem-json | 0 |
| amazon:2023 | ruby3.2-doc | 0 |
| amazon:2023 | ruby3.2-rubygem-test-unit | 0 |
| amazon:2023 | ruby3.2-rubygem-rbs | 0 |
…and 21 more
Timeline
- Jun 25, 2025 CVE Published
- Jun 26, 2025 EPSS Score (30 in total, the first dated here)
- Jun 26, 2025 Coalition ESS Score (11 in total, the first dated here)
- Mar 17, 2026 Security Advisory (3 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-6442
vulnetix vdb fixes CVE-2025-6442
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-6442/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- ZDI-25-414 x_research-advisory
- vendor-provided URL vendor-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2025-6442 advisory
- https://github.com/advisories/GHSA-r995-q44h-hr64 advisory
- https://github.com/ruby/webrick url
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/webrick/CVE-2025-6442.yml advisory
- https://www.zerodayinitiative.com/advisories/ZDI-25-414 url