Time-of-check Time-of-use (TOCTOU) Affecting python3-waitress package, versions *


Severity

Recommended
high

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.05% (19th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL8-PYTHON3WAITRESS-8316602
  • published31 Oct 2024
  • disclosed29 Oct 2024

Introduced: 29 Oct 2024

CVE-2024-49768  (opens in a new tab)
CWE-367  (opens in a new tab)
CWE-444  (opens in a new tab)

How to fix?

There is no fixed version for RHEL:8 python3-waitress.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python3-waitress package and not the python3-waitress package as distributed by RHEL. See How to fix? for RHEL:8 relevant fixed versions and status.

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.

CVSS Scores

version 3.1