First published: Tue May 31 2022(Updated: )
### Impact Waitress may terminate early due to a thread closing a socket while the main thread is about to call select(). This will lead to the main thread raising an exception that is not handled and then causing the entire application to be killed. ### Patches This issue has been fixed in Waitress 2.1.2 by no longer allowing the WSGI thread to close the socket, instead it is always delegated to the main thread. ### Workarounds There is no work-around, however users using waitress behind a reverse proxy server are less likely to have issues if the reverse proxy always reads the full response. ### For more information If you have any questions or comments about this advisory: * Open an issue in https://github.com/Pylons/waitress/issues (if not sensitive or security related) * email the Pylons Security mailing list: [pylons-project-security@googlegroups.com](mailto:pylons-project-security@googlegroups.com) (if security related)
Credit: security-advisories@github.com security-advisories@github.com
Affected Software | Affected Version | How to fix |
---|---|---|
Agendaless Waitress | >=2.1.0<2.1.2 | |
pip/waitress | >=2.1.0<2.1.2 | 2.1.2 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2022-31015 is a vulnerability in Waitress, a Web Server Gateway Interface server for Python 2 and 3.
CVE-2022-31015 has a severity rating of medium (5.9).
CVE-2022-31015 affects Waitress versions 2.1.0 to 2.1.2.
CVE-2022-31015 can lead to the main thread raising an unhandled exception and causing the server to terminate early.
To fix CVE-2022-31015, it is recommended to update to Waitress version 2.1.3 or later.