CVE-2022-31015

Summary

CVECVE-2022-31015
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-05-31 23:15:00 UTC
Updated2022-06-14 19:12:00 UTC
DescriptionWaitress is a Web Server Gateway Interface server for Python 2 and 3. Waitress versions 2.1.0 and 2.1.1 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. This issue has been fixed in Waitress 2.1.2 by no longer allowing the WSGI thread to close the socket. Instead, that is always delegated to the main thread. There is no work-around for this issue. However, users using waitress behind a reverse proxy server are less likely to have issues if the reverse proxy always reads the full response.

Risk And Classification

Problem Types: CWE-362 | CWE-248

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Agendaless Waitress All All All All

References

ReferenceSourceLinkTags
Merge pull request #377 from Pylons/bugfix/select-closed-socket-race · Pylons/waitress@4f6789b · GitHub MISC github.com
Bugfix: Don't close socket in the WSGI thread, delegate it back to the main thread! by bertjwregeer · Pull Request #377 · Pylons/waitress · GitHub MISC github.com
Possible race condition leading to the main loop dying? · Issue #374 · Pylons/waitress · GitHub MISC github.com
Uncaught Exception (due to a data race) leads to process termination · Advisory · Pylons/waitress · GitHub CONFIRM github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 183592 Debian Security Update for waitress (CVE-2022-31015)
  • 502586 Alpine Linux Security Update for py3-waitress
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report