Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. waitress
  4. ›
  5. CVE-2024-49768

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

October 29, 2024 (updated January 21, 2025)

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.

References

  • github.com/Pylons/waitress
  • github.com/Pylons/waitress/commit/e4359018537af376cf24bd13616d861e2fb76f65
  • github.com/Pylons/waitress/security/advisories/GHSA-9298-4cf8-g4wj
  • github.com/advisories/GHSA-9298-4cf8-g4wj
  • github.com/pypa/advisory-database/tree/main/vulns/waitress/PYSEC-2024-210.yaml
  • nvd.nist.gov/vuln/detail/CVE-2024-49768

Code Behaviors & Features

Detect and mitigate CVE-2024-49768 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.0 before 3.0.1

Fixed versions

  • 3.0.1

Solution

Upgrade to version 3.0.1 or above.

Impact 4.8 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
  • CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')

Source file

pypi/waitress/CVE-2024-49768.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:20 +0000.