CVE-2022-31015 Uncaught Exception (due to a data race) leads to process termination in Waitress
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- Debian
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.
Upgrade path
15 packages: 14 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| agendaless waitress | >= 2.1.0, < 2.1.2 | 2.1.2 | Fixed |
| alpine/py3-waitress(Alpine v3.16) | < 2.1.2-r0 | 2.1.2-r0 | Fixed |
| alpine/py3-waitress(Alpine v3.17) | < 2.1.2-r0 | 2.1.2-r0 | Fixed |
| alpine/py3-waitress(Alpine v3.18) | < 2.1.2-r0 | 2.1.2-r0 | Fixed |
| alpine/py3-waitress(Alpine v3.19) | < 2.1.2-r0 | 2.1.2-r0 | Fixed |
| alpine/py3-waitress(Alpine v3.20) | < 2.1.2-r0 | 2.1.2-r0 | Fixed |
| alpine/py3-waitress(Alpine v3.21) | < 2.1.2-r0 | 2.1.2-r0 | Fixed |
| alpine/py3-waitress(Alpine v3.22) | < 2.1.2-r0 | 2.1.2-r0 | Fixed |
| alpine/py3-waitress(Alpine v3.23) | < 2.1.2-r0 | 2.1.2-r0 | Fixed |
| alpine/py3-waitress(Alpine v3.24) | < 2.1.2-r0 | 2.1.2-r0 | Fixed |
| debian/waitress(Debian 12) | < 2.1.2-1 | 2.1.2-1 | Fixed |
| debian/waitress(Debian 13) | < 2.1.2-1 | 2.1.2-1 | Fixed |
| debian/waitress(Debian 14) | < 2.1.2-1 | 2.1.2-1 | Fixed |
| pypi waitress(PyPI) | = 2.1.0; = 2.1.1; >= 2.1.0, < 2.1.2 | 2.1.2 | Fixed |
| Pylons waitress | = >= 2.1.0, < 2.1.2 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi waitress(PyPI) | >= 2.1.0, < 2.1.2 | 2.1.2 |
| pypi waitress(PyPI) | = 2.1.0 | No fix listed |
| pypi waitress(PyPI) | = 2.1.1 | No fix listed |
| Pylons waitress | = >= 2.1.0, < 2.1.2 | No fix listed |
| agendaless waitress | >= 2.1.0, < 2.1.2 | 2.1.2 |
| debian/waitress(Debian:12) | < 2.1.2-1 | 2.1.2-1 |
| debian/waitress(Debian:14) | < 2.1.2-1 | 2.1.2-1 |
| debian/waitress(Debian:13) | < 2.1.2-1 | 2.1.2-1 |
| alpine/py3-waitress(Alpine:v3.16) | < 2.1.2-r0 | 2.1.2-r0 |
| alpine/py3-waitress(Alpine:v3.17) | < 2.1.2-r0 | 2.1.2-r0 |
| alpine/py3-waitress(Alpine:v3.18) | < 2.1.2-r0 | 2.1.2-r0 |
| alpine/py3-waitress(Alpine:v3.19) | < 2.1.2-r0 | 2.1.2-r0 |
| alpine/py3-waitress(Alpine:v3.20) | < 2.1.2-r0 | 2.1.2-r0 |
| alpine/py3-waitress(Alpine:v3.21) | < 2.1.2-r0 | 2.1.2-r0 |
| alpine/py3-waitress(Alpine:v3.22) | < 2.1.2-r0 | 2.1.2-r0 |
| alpine/py3-waitress(Alpine:v3.23) | < 2.1.2-r0 | 2.1.2-r0 |
| alpine/py3-waitress(Alpine:v3.24) | < 2.1.2-r0 | 2.1.2-r0 |
References
- github.com third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com exploit issue-tracking patch third-party-advisory
- github.com issue-tracking patch third-party-advisory
- github.com patch third-party-advisory
- github.com product
- github.com
- github.com
- Debian Security Tracker CVE-2022-31015 vendor-advisory
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking