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

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 43% of CVEs (2026-12-01)
- Published: 2024-10-29T14:32:25.164Z
- Modified: 2026-06-17T08:00:24.767Z
- Also known as: GHSA-9298-4cf8-g4wj, PYSEC-2024-210
- Weaknesses: CWE-367, CWE-444
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- Pylons waitress: >= 2.0.0, < 3.0.1; from 2.0.0 before 3.0.1
- waitress (PyPI): from 2.0.0 before 3.0.1; before e4359018537af376cf24bd13616d861e2fb76f65
- agendaless waitress: from 2.0.0 before 3.0.1

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`

## References

- <https://github.com/Pylons/waitress/security/advisories/GHSA-9298-4cf8-g4wj> (advisory, vendor-advisory, web)
- <https://github.com/Pylons/waitress/commit/e4359018537af376cf24bd13616d861e2fb76f65> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-49768> (advisory)
- <https://github.com/Pylons/waitress> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/waitress/PYSEC-2024-210.yaml> (web)

## Sources

- CVE List: [CVE-2024-49768](https://www.cve.org/CVERecord?id=CVE-2024-49768), CVE Terms of Use, modified 2024-10-29
- GitHub Advisory Database: [GHSA-9298-4cf8-g4wj](https://github.com/advisories/GHSA-9298-4cf8-g4wj), CC-BY-4.0, modified 2025-01-21
- NVD: [CVE-2024-49768](https://nvd.nist.gov/vuln/detail/CVE-2024-49768), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-210](https://osv.dev/vulnerability/PYSEC-2024-210), CC-BY-4.0, modified 2025-01-19

---

Page: https://cve.day/CVE-2024-49768 · Whole record: https://cve.day/CVE-2024-49768.json · Rebuilt by cve.day 2026-11-25T22:58:47.491Z
