Skip to content

CVE-2024-49768 Waitress has request processing race condition in HTTP pipelining with invalid first request

MediumCVSS 4.8 EPSS 0.49%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: total
Technology
UbuntuDebian

Description

Waitress is a Web Server Gateway Interface server for Python 2 and 3. A remote client may send a request that is exactly recv_bytes (defaults to 8192) long, followed by a secondary request using HTTP pipelining. When request lookahead is disabled (default) we won't read any more requests, and when the first request fails due to a parsing error, we simply close the connection. However 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 we read the next request and queue it. This will allow the secondary request to be serviced by the worker thread while the connection should be closed. Waitress 3.0.1 fixes the race condition. As a workaround, disable channel_request_lookahead, this is set to 0 by default disabling this feature.

Upgrade path

7 packages: 7 fixed.

PackageAffectedFixed inStatus
agendaless waitress >= 2.0.0, < 3.0.1 3.0.1 Fixed
debian/waitress(Debian 12) < 2.1.2-2+deb12u1; = 2.1.2-2 2.1.2-2+deb12u1 Fixed
debian/waitress(Debian 13) < 3.0.1-1 3.0.1-1 Fixed
debian/waitress(Debian 14) < 3.0.1-1 3.0.1-1 Fixed
Pylons waitress = >= 2.0.0, < 3.0.1; >= 2.0.0, < 3.0.1 3.0.1 Fixed
pypi waitress(PyPI) = 2.0.0; = 2.1.0; = 2.1.0b0; = 2.1.1 +3 more 3.0.1 Fixed
ubuntu/waitress(Ubuntu 24.04) < 2.1.2-2ubuntu0.1~esm1 2.1.2-2ubuntu0.1~esm1 Fixed

Affected products

ProductAffected versionsFixed in
pypi waitress(PyPI) >= 2.0.0, < 3.0.1 3.0.1
pypi waitress(PyPI) = 2.0.0 No fix listed
pypi waitress(PyPI) = 2.1.0 No fix listed
pypi waitress(PyPI) = 2.1.0b0 No fix listed
pypi waitress(PyPI) = 2.1.1 No fix listed
pypi waitress(PyPI) = 2.1.2 No fix listed
pypi waitress(PyPI) = 3.0.0 No fix listed
debian/waitress(Debian:12) < 2.1.2-2+deb12u1 2.1.2-2+deb12u1
debian/waitress(Debian:12) = 2.1.2-2 No fix listed
debian/waitress(Debian:13) < 3.0.1-1 3.0.1-1
debian/waitress(Debian:14) < 3.0.1-1 3.0.1-1
Pylons waitress = >= 2.0.0, < 3.0.1 No fix listed
Pylons waitress >= 2.0.0, < 3.0.1 3.0.1
ubuntu/waitress(Ubuntu:24.04) < 2.1.2-2ubuntu0.1~esm1 2.1.2-2ubuntu0.1~esm1
agendaless waitress >= 2.0.0, < 3.0.1 3.0.1

References