CVE-2024-49768

NameCVE-2024-49768
DescriptionWaitress 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1086467

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
waitress (PTS)jessie, jessie (lts)0.8.9-2+deb8u1vulnerable
stretch (security), stretch (lts), stretch1.0.1-1+deb9u1vulnerable
buster (security), buster, buster (lts)1.2.0~b2-2+deb10u1vulnerable
bullseye (security), bullseye1.4.4-1.1+deb11u1vulnerable
bookworm2.1.2-2vulnerable
sid, trixie3.0.1-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
waitresssourcejessie(unfixed)end-of-life
waitresssource(unstable)3.0.1-11086467

Notes

https://github.com/Pylons/waitress/security/advisories/GHSA-9298-4cf8-g4wj
Fixed by: https://github.com/Pylons/waitress/commit/6943dcf556610ece2ff3cddb39e59a05ef110661 (v3.0.1)
Test: https://github.com/Pylons/waitress/commit/7e7f11e61d358ab1cb853fcadf2b46b1f00f5993 (v3.0.1)
Fixed by: https://github.com/Pylons/waitress/commit/f4ba1c260cf17156b582c6252496213ddc96b591 (v3.0.1)
Documentation update: https://github.com/Pylons/waitress/commit/810a435f9e9e293bd3446a5ce2df86f59c4e7b1b (v3.0.1)

Search for package or bug name: Reporting problems