Vulnerability · Published Oct 29, 2024 · Assigned by GitHub_M

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

Critical 9.1

In plain English

A critical-severity security flaw in waitress from Pylons. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 42% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.1Critical
Exploit odds (30 days)0.5%top 58.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12waitress2.1.2-2+deb12u1DEBIAN-CVE-2024-49768
Debian:13waitress3.0.1-1DEBIAN-CVE-2024-49768
Debian:14waitress3.0.1-1DEBIAN-CVE-2024-49768
PyPIwaitress3.0.1GHSA-9298-4cf8-g4wj
PyPIwaitress3.0.1PYSEC-2024-210
Ubuntu:22.04:LTSwaitress1.4.4-1.1ubuntu1.1USN-7115-1

Affected products (as reported)

VendorProductVersions
Pylons waitress >= 2.0.0, < 3.0.1

Weakness: CWE-367, CWE-444 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

References