CVE-2024-49768Waitress has request processing race condition in HTTP pipelining with invalid first…
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.
What to do
Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | waitress | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | waitress | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | waitress | Fix pending | 2.1.2-2ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-49768 |
| Ubuntu 22.04 | waitress | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | waitress | Not affected vulnerable_code_not_present | ||
| Debian 14 | waitress | Fixed | 3.0.1-1 | DEBIAN-CVE-2024-49768 |
| Debian 13 | waitress | Fixed | 3.0.1-1 | DEBIAN-CVE-2024-49768 |
| Debian 12 | waitress | Fixed | 2.1.2-2+deb12u1 | DEBIAN-CVE-2024-49768 |
| PyPI library | waitress | Fixed | 3.0.1 | GHSA-9298-4cf8-g4wj |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Pylons waitress: affected: >= 2.0.0, < 3.0.1
References
- https://github.com/Pylons/waitress/security/advisories/GHSA-9298-4cf8-g4wj
- https://github.com/Pylons/waitress/commit/e4359018537af376cf24bd13616d861e2fb76f65
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.