CVEfocus › CVE database › CVE-2024-49768

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

CVSS 9.1 CriticalEPSS 0.6% (higher than 40% of CVEs)Published 2024-10-29Updated 2024-10-29Assigner: GitHub_M

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.

CWE-367CWE-444

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

4Fixed
1Fix pending
4Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04waitressNot affected
vulnerable_code_not_present
Ubuntu 25.10waitressNot affected
vulnerable_code_not_present
Ubuntu 24.04waitressFix pending2.1.2-2ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-49768
Ubuntu 22.04waitressNot affected
vulnerable_code_not_present
Ubuntu 20.04waitressNot affected
vulnerable_code_not_present
Debian 14waitressFixed3.0.1-1DEBIAN-CVE-2024-49768
Debian 13waitressFixed3.0.1-1DEBIAN-CVE-2024-49768
Debian 12waitressFixed2.1.2-2+deb12u1DEBIAN-CVE-2024-49768
PyPI librarywaitressFixed3.0.1GHSA-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.

References

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.