CVE-2022-31015Uncaught Exception (due to a data race) leads to process termination in Waitress
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.
What to do
Fixed builds are available from Alpine, Debian, PyPI: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | waitress | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | waitress | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | waitress | Not affected vulnerable_code_not_present | ||
| Debian 14 | waitress | Fixed | 2.1.2-1 | DEBIAN-CVE-2022-31015 |
| Debian 13 | waitress | Fixed | 2.1.2-1 | DEBIAN-CVE-2022-31015 |
| Debian 12 | waitress | Fixed | 2.1.2-1 | DEBIAN-CVE-2022-31015 |
| Alpine Linux 3.24 | py3-waitress | Fixed | 2.1.2-r0 | ALPINE-CVE-2022-31015 |
| Alpine Linux 3.23 | py3-waitress | Fixed | 2.1.2-r0 | ALPINE-CVE-2022-31015 |
| Alpine Linux 3.22 | py3-waitress | Fixed | 2.1.2-r0 | ALPINE-CVE-2022-31015 |
| Alpine Linux 3.21 | py3-waitress | Fixed | 2.1.2-r0 | ALPINE-CVE-2022-31015 |
| Alpine Linux 3.20 | py3-waitress | Fixed | 2.1.2-r0 | ALPINE-CVE-2022-31015 |
| Alpine Linux 3.19 | py3-waitress | Fixed | 2.1.2-r0 | ALPINE-CVE-2022-31015 |
| Alpine Linux 3.18 | py3-waitress | Fixed | 2.1.2-r0 | ALPINE-CVE-2022-31015 |
| Alpine Linux 3.17 | py3-waitress | Fixed | 2.1.2-r0 | ALPINE-CVE-2022-31015 |
| Alpine Linux 3.16 | py3-waitress | Fixed | 2.1.2-r0 | ALPINE-CVE-2022-31015 |
| PyPI library | waitress | Fixed | 2.1.2 | PYSEC-2022-205 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Pylons waitress: affected: >= 2.1.0, < 2.1.2
References
- https://github.com/Pylons/waitress/security/advisories/GHSA-f5x9-8jwc-25rw
- https://github.com/Pylons/waitress/issues/374
- https://github.com/Pylons/waitress/pull/377
- https://github.com/Pylons/waitress/commit/4f6789b035610e0552738cdc4b35ca809a592d48
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.