CVE-2022-31015
Description
Waitress 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.
Weakness
- CWE-248: Uncaught Exception
- CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2025-04-22 |
Timeline
- 2022-05-31Published by the CNA22:50 UTC
- 2022-06-02GitHub advisory published (GHSA-f5x9-8jwc-25rw)2 days after publication
- 2025-04-22CISA SSVC decision recorded1057 days after publication
Exploit and advisory records
GitHub advisory GHSA-f5x9-8jwc-25rw, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI waitress | from 2.1.0 before 2.1.2 | 2.1.2 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| agendaless waitress | from 2.1.0 before 2.1.2fixed in 2.1.2 | 2.1.2 |
References
- https://github.com/Pylons/waitress/commit/4f6789b035610e0552738cdc4b35ca809a592d48
- https://github.com/Pylons/waitress/issues/374
- https://github.com/Pylons/waitress/pull/377
- https://github.com/Pylons/waitress/security/advisories/GHSA-f5x9-8jwc-25rw
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2022-31015'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2022-31015'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2022-31015'curl 'https://api.contrastcyber.com/cve_products/CVE-2022-31015'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).