CVE-2022-24761: HTTP Request Smuggling in waitress
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.44028%
CWE
Published
3/18/2022
Updated
11/19/2024
KEV Status
No
Technology
Python
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 |
---|---|---|---|
waitress | pip | < 2.1.1 | 2.1.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from two key functions: 1) parse_header() in parser.py directly converted Content-Length to int() without validating the string contains only digits, allowing RFC-violating values. 2) ChunkedReceiver's received() method in receiver.py processed chunk sizes without proper hex validation and handled extensions without checking for illegal characters. The commit diff shows these functions were patched with regex validations (ONLY_DIGIT_RE and ONLY_HEXDIG_RE) confirming these were the vulnerable points.