CVE-2024-47220:
HTTP Request Smuggling in ruby webrick
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.3079%
CWE
Published
9/22/2024
Updated
9/25/2024
KEV Status
No
Technology
Ruby
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
webrick | rubygems | <= 1.8.1 | 1.8.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from WEBrick's failure to reject requests containing both Content-Length and Transfer-Encoding headers. The commit f5faca9 explicitly adds a check in the read_body method to detect this condition and raise an error. The pre-patch version of read_body in httprequest.rb lacked this validation, making it the vulnerable function. The test case in test_httprequest.rb confirms the exploit scenario targets this function's behavior.