CVE-2024-49768
Reported by github_m · Published October 29, 2024
waitress is fixed in 3.0.1 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| waitress | PyPI | 3.0.1 |
| waitress | pylons | 3.0.1 |
| waitress | agendaless | 3.0.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Pylons | waitress | >= 2.0.0, < 3.0.1 |
| Pylons | waitress | 2.0.0 |
| PyPI | waitress | 2.0.0 |
| amazon:2023 | python3-waitress | 0 |
| pylons | waitress | 2.0.0 |
Timeline
- Oct 29, 2024 CVE Published
- Oct 29, 2024 Coalition ESS Score (8 in total, the first dated here)
- Oct 29, 2024 PoC Published (6 in total, the first dated here)
- Oct 30, 2024 EPSS Score (30 in total, the first dated here)
- Jan 21, 2025 CVE Updated
- Jan 2, 2026 Security Advisory (12 in total, the first dated here)
- Oct 20, 2026 Distribution Patch (10 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-49768
vulnetix vdb fixes CVE-2024-49768
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-49768/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/Pylons/waitress/security/advisories/GHSA-9298-4cf8-g4wj x_refsource_CONFIRM
- https://github.com/Pylons/waitress/commit/e4359018537af376cf24bd13616d861e2fb76f65 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2024-49768 advisory
- https://github.com/advisories/GHSA-9298-4cf8-g4wj advisory
- https://github.com/Pylons/waitress url
- https://github.com/pypa/advisory-database/tree/main/vulns/waitress/PYSEC-2024-210.yaml advisory