Vulnerabilities · 2025 · Ruby-lang
CVE-2025-6442
Ruby-lang Webrick vulnerability
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.
Affected products
Webrick. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Ruby-lang Webrick runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/ruby/webrick/commit/ee60354bcb84ec33b9245e1d1aa6e1f7e8132101#diff-ad02984d873ef · Patch
- www.zerodayinitiative.com/advisories/ZDI-25-414/ · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2025-6442
- www.zerodayinitiative.com/advisories/ZDI-25-414
- github.com/rubysec/ruby-advisory-db/blob/master/gems/webrick/CVE-2025-6442.yml
- github.com/advisories/GHSA-r995-q44h-hr64
- nvd.nist.gov/vuln/detail/CVE-2025-6442
- cve.org/CVERecord?id=CVE-2025-6442
More vulnerabilities in Ruby-lang products
CVE-2026-46727CVE-2025-58767CVE-2025-43857CVE-2025-27788CVE-2025-27221CVE-2025-27220CVE-2025-27219CVE-2024-49761All 115
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.