CVE-2022-31015
published 2022-05-31CVE-2022-31015: 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…
PriorityP428medium5.9CVSS 3.1
AVNACHPRNUINSUCNINAH
EPSS
1.34%
68.2th percentile
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.
Affected
8 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| agendaless | waitress | >= 2.1.0 < 2.1.2 | 2.1.2 |
| debian | waitress | < waitress 2.1.2-1 (bookworm) | waitress 2.1.2-1 (bookworm) |
| msrc | azl3_python-waitress_3.0.1-1_on_azure_linux_3.0 | — | — |
| pylons | waitress | — | — |
| pylons | waitress | >= 0 < 2.1.2-1 | 2.1.2-1 |
| pylons | waitress | >= 0 < 2.1.2-1 | 2.1.2-1 |
| pylons | waitress | >= 0 < 2.1.2-1 | 2.1.2-1 |
| pylons | waitress | >= 2.1.0 < 2.1.2 | 2.1.2 |
CVSS provenance
nvdv3.15.9MEDIUMCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
nvdv2.04.3MEDIUMAV:N/AC:M/Au:N/C:N/I:N/A:P
osv5.9MEDIUM
vendor_debian6.5MEDIUM
vendor_msrc6.5MEDIUM
vendor_redhat6.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
waitress: uncaught Exception (due to a data race) leads to process termination
vendor_redhat·2022-06-01·CVSS 6.5
CVE-2022-31015 [MEDIUM] CWE-248 waitress: uncaught Exception (due to a data race) leads to process termination
waitress: uncaught Exception (due to a data race) leads to process termination
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.
Statement: The versions of waitress shipped
Microsoft
Uncaught Exception (due to a data race) leads to process termination in Waitress
vendor_msrc·2022-05-10·CVSS 6.5
CVE-2022-31015 [MEDIUM] CWE-248 Uncaught Exception (due to a data race) leads to process termination in Waitress
Uncaught Exception (due to a data race) leads to process termination in Waitress
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
GitHub_M: GitHub_M
Customer Action Required: Yes
Remediation: CBL-Mariner Rel
Debian
CVE-2022-31015: waitress - Waitress is a Web Server Gateway Interface server for Python 2 and 3. Waitress v...
vendor_debian·2022·CVSS 6.5
CVE-2022-31015 [MEDIUM] CVE-2022-31015: waitress - Waitress is a Web Server Gateway Interface server for Python 2 and 3. Waitress v...
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.
Scope: local
bookworm: resolved (fixed in 2.1.2-1)
bullseye: resolved
forky: resolved (fixed in 2.1.2-1)
sid: resolved (fixe
OSV
Uncaught Exception (due to a data race) leads to process termination in Waitress
osv·2022-06-02
CVE-2022-31015 [HIGH] Uncaught Exception (due to a data race) leads to process termination in Waitress
Uncaught Exception (due to a data race) leads to process termination in Waitress
### 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:/
GHSA
Uncaught Exception (due to a data race) leads to process termination in Waitress
ghsa·2022-06-02
CVE-2022-31015 [HIGH] CWE-248 Uncaught Exception (due to a data race) leads to process termination in Waitress
Uncaught Exception (due to a data race) leads to process termination in Waitress
### 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:/
OSV
CVE-2022-31015: Waitress is a Web Server Gateway Interface server for Python 2 and 3
osv·2022-05-31·CVSS 5.9
CVE-2022-31015 [MEDIUM] CVE-2022-31015: Waitress is a Web Server Gateway Interface server for Python 2 and 3
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.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/Pylons/waitress/commit/4f6789b035610e0552738cdc4b35ca809a592d48https://github.com/Pylons/waitress/issues/374https://github.com/Pylons/waitress/pull/377https://github.com/Pylons/waitress/security/advisories/GHSA-f5x9-8jwc-25rwhttps://github.com/Pylons/waitress/commit/4f6789b035610e0552738cdc4b35ca809a592d48https://github.com/Pylons/waitress/issues/374https://github.com/Pylons/waitress/pull/377https://github.com/Pylons/waitress/security/advisories/GHSA-f5x9-8jwc-25rw
2022-05-31
Published