PYSEC-2024-210

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/waitress/PYSEC-2024-210.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2024-210
Aliases
Published
2024-10-29T15:15:11Z
Modified
2025-01-19T19:56:46.402896Z
Severity
  • 4.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N CVSS Calculator
Summary
[none]
Details

Waitress is a Web Server Gateway Interface server for Python 2 and 3. A remote client may send a request that is exactly recvbytes (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 channelrequest_lookahead, this is set to 0 by default disabling this feature.

References

Affected packages

PyPI / waitress

Package

Affected ranges

Type
GIT
Repo
https://github.com/pylons/waitress
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Type
ECOSYSTEM
Events
Introduced
2.0.0
Fixed
3.0.1

Affected versions

2.*

2.0.0
2.1.0b0
2.1.0
2.1.1
2.1.2

3.*

3.0.0