CVEfocus › CVE database › CVE-2022-31015

CVE-2022-31015Uncaught Exception (due to a data race) leads to process termination in Waitress

CVSS 6.5 MediumEPSS 1.4% (higher than 72% of CVEs)Published 2022-05-31Updated 2025-04-22Assigner: GitHub_M

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.

CWE-248CWE-362

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

13Fixed
3Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04waitressNot affected
vulnerable_code_not_present
Ubuntu 20.04waitressNot affected
vulnerable_code_not_present
Ubuntu 18.04waitressNot affected
vulnerable_code_not_present
Debian 14waitressFixed2.1.2-1DEBIAN-CVE-2022-31015
Debian 13waitressFixed2.1.2-1DEBIAN-CVE-2022-31015
Debian 12waitressFixed2.1.2-1DEBIAN-CVE-2022-31015
Alpine Linux 3.24py3-waitressFixed2.1.2-r0ALPINE-CVE-2022-31015
Alpine Linux 3.23py3-waitressFixed2.1.2-r0ALPINE-CVE-2022-31015
Alpine Linux 3.22py3-waitressFixed2.1.2-r0ALPINE-CVE-2022-31015
Alpine Linux 3.21py3-waitressFixed2.1.2-r0ALPINE-CVE-2022-31015
Alpine Linux 3.20py3-waitressFixed2.1.2-r0ALPINE-CVE-2022-31015
Alpine Linux 3.19py3-waitressFixed2.1.2-r0ALPINE-CVE-2022-31015
Alpine Linux 3.18py3-waitressFixed2.1.2-r0ALPINE-CVE-2022-31015
Alpine Linux 3.17py3-waitressFixed2.1.2-r0ALPINE-CVE-2022-31015
Alpine Linux 3.16py3-waitressFixed2.1.2-r0ALPINE-CVE-2022-31015
PyPI librarywaitressFixed2.1.2PYSEC-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.

References

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.