cve.bz

CVE-2022-31015 agendaless waitress: Uncaught Exception

5.9 mediumExploit referenceEPSS 1.5%Fix available

Medium (5.9) in agendaless waitress. EPSS 1.5% estimated probability of exploitation activity in the next 30 days. Fixed in waitress 2.1.2.

On this page
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.

Severity

CVSS 3.1

5.9 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.5% (unchanged from 1.5% a week ago; 1.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 75th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2025-04-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-248 Uncaught Exception
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)
OWASP Top 10
A06:2025 Insecure Design, A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-31015 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-31015?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-31015?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-31015 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
agendaless:waitressfrom 2.1.0 before 2.1.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-f5x9-8jwc-25rwPyPIwaitress>=2.1.0 <2.1.22.1.2
PYSEC-2022-205PyPIwaitress>=2.1.0 <2.1.22.1.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14waitress2.1.2-1DEBIAN-CVE-2022-31015
openSUSETumbleweedpython-waitress3.0.2-1.4openSUSE-SU-2025:15108-1
Alpinev3.16, v3.17, v3.18 and 6 morepy3-waitress2.1.2-r0ALPINE-CVE-2022-31015
Azure Linux2python-waitressno fix listedAZL-43513
Azure Linux3python-waitress3.0.1-1AZL-44571

From the distributions' data via OSV.dev: the Debian Security Tracker; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

Red Hat's statement

The versions of waitress shipped with Red Hat products are not affected by this flaw.

ProductPackageStateAdvisory
Red Hat Ceph Storage 3python-waitressNot affected
Red Hat Ceph Storage 4python-waitressNot affected
Red Hat Ceph Storage 5python-waitressNot affected
Red Hat Ceph Storage 7python-waitressNot affected
Red Hat Openshift Container Storage 4python-waitressNot affected
Red Hat Openshift Data Foundation 4python-waitressNot affected
Red Hat OpenStack Platform 13 (Queens)python-waitressNot affected
Red Hat OpenStack Platform 16.1python-waitressNot affected
Red Hat OpenStack Platform 16.2python-waitressNot affected
Red Hat Quay 3quay/quay-rhel8Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-31015.

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON