Waitress · Waitress · CVE-2024-49768
Name of the Vulnerable Software and Affected Versions:
Waitress versions prior to 3.0.1
Description:
The issue is related to a race condition in the Waitress WSGI server for Python, which can be exploited by a remote client sending a request that is exactly `recv bytes` (defaults to 8192) long, followed by a secondary request using HTTP pipelining. When request lookahead is enabled, it is possible to process and receive the first request, start sending the error message back to the client while reading the next request and queueing it. This allows the secondary request to be serviced by the worker thread while the connection should be closed.
Recommendations:
For versions prior to 3.0.1, update to Waitress 3.0.1 to fix the race condition.
As a temporary workaround, disable `channel request lookahead`, which is set to 0 by default, disabling this feature.