cve.bz

CVE-2026-26209 agronholm cbor2: Uncontrolled Recursion

7.5 highExploit referenceEPSS 0.4%Fix available

High (7.5) in agronholm cbor2. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in cbor2 5.9.0.

On this page
cbor2 provides encoding and decoding for the Concise Binary Object Representation (CBOR) serialization format. Versions prior to 5.9.0 are vulnerable to a Denial of Service (DoS) attack caused by uncontrolled recursion when decoding deeply nested CBOR structures. This vulnerability affects both the pure Python implementation and the C extension `_cbor2`. The C extension relies on Python's internal recursion limits `Py_EnterRecursiveCall` rather than a data-driven depth limit, meaning it still raises `RecursionError` and crashes the worker process when the limit is hit. While the library handles moderate nesting levels, it lacks a hard depth limit. An attacker can supply a crafted CBOR payload containing approximately 100,000 nested arrays `0x81`. When `cbor2.loads()` attempts to parse this, it hits the Python interpreter's maximum recursion depth or exhausts the stack, causing the process to crash with a `RecursionError`. Because the library does not enforce its own limits, it allows an external attacker to exhaust the host application's stack resource. In many web application servers (e.g., Gunicorn, Uvicorn) or task queues (Celery), an unhandled `RecursionError` terminates the worker process immediately. By sending a stream of these small (<100KB) malicious packets, an attacker can repeatedly crash worker processes, resulting in a complete Denial of Service for the application. Version 5.9.0 patches the issue.

Severity

CVSS 3.0

7.5 high
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 39th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2026-03-24. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-674 Uncontrolled Recursion
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-26209 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-26209?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-26209?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-2026-26209 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
agronholm:cbor2before 5.9.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-3c37-wwvx-h642PyPIcbor2<5.9.05.9.0
PYSEC-2026-2123PyPIcbor2<5.9.05.9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13cbor2no fix listedDEBIAN-CVE-2026-26209
Debian14cbor25.9.0-1DEBIAN-CVE-2026-26209
Ubuntu22.04:LTS, 24.04:LTS, 25.10 and 2 morecbor2no fix listedUBUNTU-CVE-2026-26209
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0python-cbor25.6.5-160000.4.1SUSE-SU-2026:21139-1
openSUSELeap 16.0python-cbor25.6.5-160000.4.1openSUSE-SU-2026:20468-1
openSUSETumbleweedpython-cbor25.9.0-1.1openSUSE-SU-2026:10425-1
Azure Linux3python-cbor2no fix listedAZL-80541

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

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat AI Inference Server 3.2rhaiis/vllm-cuda-rhel9:1779223654Fixed 2026-05-20RHSA-2026:19724
Red Hat AI Inference Server 3.2rhaiis/vllm-rocm-rhel9:1779223651Fixed 2026-05-20RHSA-2026:19725
Red Hat AI Inference Server 3.3rhaiis/vllm-rocm-rhel9:1778244531Fixed 2026-05-11RHSA-2026:16009
Red Hat AI Inference Server 3.3rhaiis/vllm-cuda-rhel9:1778274666Fixed 2026-05-11RHSA-2026:16030
Red Hat AI Inference Server 3.3rhaiis/vllm-spyre-rhel9:1778244546Fixed 2026-05-12RHSA-2026:16174
Red Hat AI Inference Serverrhaiis-preview/vllm-cuda-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis/vllm-cpu-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis/vllm-neuron-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis/vllm-tpu-rhel9Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/lightspeed-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-aws-cuda-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-azure-cuda-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-azure-rocm-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-cuda-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-gcp-cuda-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-rocm-rhel9Fix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-vllm-cpu-rhel9Fix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-vllm-cuda-rhel9Fix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-vllm-gaudi-rhel9Fix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-vllm-rocm-rhel9Fix deferred

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-2026-26209.

Attack patterns (CAPEC)

  • CAPEC-230 Serialized Data with Nested Payloads Likelihood: Medium · Severity: High
  • CAPEC-231 Oversized Serialized Data Payloads Likelihood: Medium · Severity: High

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

References

Check your stackJSON