Time-of-check Time-of-use (TOCTOU) Affecting python311-waitress-doc package, versions <2.1.2-150400.12.7.1


Severity

Recommended
0.0
high
0
10

Based on SUSE Linux Enterprise Server security rating.

Threat Intelligence

EPSS
0.05% (20th 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-SLES156-PYTHON311WAITRESSDOC-8322665
  • published2 Nov 2024
  • disclosed1 Nov 2024

Introduced: 1 Nov 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?

Upgrade SLES:15.6 python311-waitress-doc to version 2.1.2-150400.12.7.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python311-waitress-doc package and not the python311-waitress-doc package as distributed by SLES. See How to fix? for SLES:15.6 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