CVE-2026-26209 cbor2 has a Denial of Service via Uncontrolled Recursion in cbor2.loads
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- UbuntuDebianRed Hat
Description
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.
Upgrade path
29 packages: 3 fixed, 26 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/cbor2(Debian 12) | = 5.4.6-1; = 5.4.6-2; = 5.5.1-1; = 5.6.0-1 +17 more | No fix listed | No fix yet |
| debian/cbor2(Debian 13) | = 5.6.5-1; = 5.7.0-1; = 5.7.1-1; = 5.8.0-1 +9 more | No fix listed | No fix yet |
| redhat/ansible-automation-platform-26/lightspeed-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/rhaiis-preview/vllm-cuda-rhel9(Red Hat ai_inference_server 3) | All versions | No fix listed | No fix yet |
| redhat/rhaiis/vllm-cpu-rhel9(Red Hat ai_inference_server 3) | All versions | No fix listed | No fix yet |
| redhat/rhaiis/vllm-cuda-rhel9:1778274666(Red Hat ai_inference_server 3.3 el9) | All versions | No fix listed | No fix yet |
| redhat/rhaiis/vllm-cuda-rhel9:1779223654(Red Hat ai_inference_server 3.2 el9) | All versions | No fix listed | No fix yet |
| redhat/rhaiis/vllm-neuron-rhel9(Red Hat ai_inference_server 3) | All versions | No fix listed | No fix yet |
| redhat/rhaiis/vllm-rocm-rhel9:1778244531(Red Hat ai_inference_server 3.3 el9) | All versions | No fix listed | No fix yet |
| redhat/rhaiis/vllm-rocm-rhel9:1779223651(Red Hat ai_inference_server 3.2 el9) | All versions | No fix listed | No fix yet |
| redhat/rhaiis/vllm-spyre-rhel9:1778244546(Red Hat ai_inference_server 3.3 el9) | All versions | No fix listed | No fix yet |
| redhat/rhaiis/vllm-tpu-rhel9(Red Hat ai_inference_server 3) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-aws-cuda-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-azure-cuda-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-azure-rocm-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-cuda-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-gcp-cuda-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-rocm-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-vllm-cpu-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-vllm-cuda-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-vllm-gaudi-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-vllm-rocm-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| ubuntu/cbor2(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/cbor2(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/cbor2(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/cbor2(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| agronholm cbor2 | < 5.9.0; = < 5.9.0 | 5.9.0 | Fixed |
| debian/cbor2(Debian 14) | < 5.9.0-1; = 5.6.5-1; = 5.7.0-1; = 5.7.1-1 +3 more | 5.9.0-1 | Fixed |
| pypi cbor2(PyPI) | < 5.9.0; <= 5.8.0; = 1.0.0; = 1.1.0 +38 more | 5.9.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| agronholm cbor2 | = < 5.9.0 | No fix listed |
| pypi cbor2(PyPI) | < 5.9.0 | 5.9.0 |
| pypi cbor2(PyPI) | = 1.0.0 | No fix listed |
| pypi cbor2(PyPI) | = 1.1.0 | No fix listed |
| pypi cbor2(PyPI) | = 2.0.0 | No fix listed |
| pypi cbor2(PyPI) | = 3.0.0 | No fix listed |
| pypi cbor2(PyPI) | = 3.0.1 | No fix listed |
| pypi cbor2(PyPI) | = 3.0.2 | No fix listed |
| pypi cbor2(PyPI) | = 3.0.3 | No fix listed |
| pypi cbor2(PyPI) | = 3.0.4 | No fix listed |
| pypi cbor2(PyPI) | = 4.0.0 | No fix listed |
| pypi cbor2(PyPI) | = 4.0.1 | No fix listed |
| pypi cbor2(PyPI) | = 4.1.0 | No fix listed |
| pypi cbor2(PyPI) | = 4.1.1 | No fix listed |
| pypi cbor2(PyPI) | = 4.1.2 | No fix listed |
| pypi cbor2(PyPI) | = 5.0.0 | No fix listed |
| pypi cbor2(PyPI) | = 5.0.1 | No fix listed |
| pypi cbor2(PyPI) | = 5.1.0 | No fix listed |
| pypi cbor2(PyPI) | = 5.1.1 | No fix listed |
| pypi cbor2(PyPI) | = 5.1.2 | No fix listed |
| pypi cbor2(PyPI) | = 5.2.0 | No fix listed |
| pypi cbor2(PyPI) | = 5.2.0.post1 | No fix listed |
| pypi cbor2(PyPI) | = 5.3.0 | No fix listed |
| pypi cbor2(PyPI) | = 5.4.0 | No fix listed |
| pypi cbor2(PyPI) | = 5.4.1 | No fix listed |
Show 84 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi cbor2(PyPI) | = 5.4.2 | No fix listed |
| pypi cbor2(PyPI) | = 5.4.2.post1 | No fix listed |
| pypi cbor2(PyPI) | = 5.4.3 | No fix listed |
| pypi cbor2(PyPI) | = 5.4.4 | No fix listed |
| pypi cbor2(PyPI) | = 5.4.5 | No fix listed |
| pypi cbor2(PyPI) | = 5.4.6 | No fix listed |
| pypi cbor2(PyPI) | = 5.5.0 | No fix listed |
| pypi cbor2(PyPI) | = 5.5.1 | No fix listed |
| pypi cbor2(PyPI) | = 5.6.0 | No fix listed |
| pypi cbor2(PyPI) | = 5.6.1 | No fix listed |
| pypi cbor2(PyPI) | = 5.6.2 | No fix listed |
| pypi cbor2(PyPI) | = 5.6.3 | No fix listed |
| pypi cbor2(PyPI) | = 5.6.4 | No fix listed |
| pypi cbor2(PyPI) | = 5.6.5 | No fix listed |
| pypi cbor2(PyPI) | = 5.7.0 | No fix listed |
| pypi cbor2(PyPI) | = 5.7.1 | No fix listed |
| pypi cbor2(PyPI) | = 5.8.0 | No fix listed |
| pypi cbor2(PyPI) | <= 5.8.0 | No fix listed |
| debian/cbor2(Debian:12) | All versions | No fix listed |
| debian/cbor2(Debian:12) | = 5.4.6-1 | No fix listed |
| debian/cbor2(Debian:12) | = 5.4.6-2 | No fix listed |
| debian/cbor2(Debian:12) | = 5.5.1-1 | No fix listed |
| debian/cbor2(Debian:12) | = 5.6.0-1 | No fix listed |
| debian/cbor2(Debian:12) | = 5.6.1-1 | No fix listed |
| debian/cbor2(Debian:12) | = 5.6.2-1 | No fix listed |
| debian/cbor2(Debian:12) | = 5.6.3-1 | No fix listed |
| debian/cbor2(Debian:12) | = 5.6.4-1 | No fix listed |
| debian/cbor2(Debian:12) | = 5.6.5-1 | No fix listed |
| debian/cbor2(Debian:12) | = 5.7.0-1 | No fix listed |
| debian/cbor2(Debian:12) | = 5.7.1-1 | No fix listed |
| debian/cbor2(Debian:12) | = 5.8.0-1 | No fix listed |
| debian/cbor2(Debian:12) | = 5.8.0-2 | No fix listed |
| debian/cbor2(Debian:12) | = 5.8.0-3 | No fix listed |
| debian/cbor2(Debian:12) | = 5.9.0-1 | No fix listed |
| debian/cbor2(Debian:12) | = 5.9.0-2 | No fix listed |
| debian/cbor2(Debian:12) | = 5.9.0-2~bpo13+1 | No fix listed |
| debian/cbor2(Debian:12) | = 5.9.0-2~bpo13+2 | No fix listed |
| debian/cbor2(Debian:12) | = 6.1.2-1 | No fix listed |
| debian/cbor2(Debian:12) | = 6.1.2-2 | No fix listed |
| debian/cbor2(Debian:13) | All versions | No fix listed |
| debian/cbor2(Debian:13) | = 5.6.5-1 | No fix listed |
| debian/cbor2(Debian:13) | = 5.7.0-1 | No fix listed |
| debian/cbor2(Debian:13) | = 5.7.1-1 | No fix listed |
| debian/cbor2(Debian:13) | = 5.8.0-1 | No fix listed |
| debian/cbor2(Debian:13) | = 5.8.0-2 | No fix listed |
| debian/cbor2(Debian:13) | = 5.8.0-3 | No fix listed |
| debian/cbor2(Debian:13) | = 5.9.0-1 | No fix listed |
| debian/cbor2(Debian:13) | = 5.9.0-2 | No fix listed |
| debian/cbor2(Debian:13) | = 5.9.0-2~bpo13+1 | No fix listed |
| debian/cbor2(Debian:13) | = 5.9.0-2~bpo13+2 | No fix listed |
| debian/cbor2(Debian:13) | = 6.1.2-1 | No fix listed |
| debian/cbor2(Debian:13) | = 6.1.2-2 | No fix listed |
| debian/cbor2(Debian:14) | < 5.9.0-1 | 5.9.0-1 |
| debian/cbor2(Debian:14) | = 5.6.5-1 | No fix listed |
| debian/cbor2(Debian:14) | = 5.7.0-1 | No fix listed |
| debian/cbor2(Debian:14) | = 5.7.1-1 | No fix listed |
| debian/cbor2(Debian:14) | = 5.8.0-1 | No fix listed |
| debian/cbor2(Debian:14) | = 5.8.0-2 | No fix listed |
| debian/cbor2(Debian:14) | = 5.8.0-3 | No fix listed |
| redhat/rhaiis/vllm-cuda-rhel9:1779223654(Red Hat:ai_inference_server:3.2::el9) | All versions | No fix listed |
| redhat/rhaiis/vllm-rocm-rhel9:1779223651(Red Hat:ai_inference_server:3.2::el9) | All versions | No fix listed |
| redhat/rhaiis/vllm-rocm-rhel9:1778244531(Red Hat:ai_inference_server:3.3::el9) | All versions | No fix listed |
| redhat/rhaiis/vllm-cuda-rhel9:1778274666(Red Hat:ai_inference_server:3.3::el9) | All versions | No fix listed |
| redhat/rhaiis/vllm-spyre-rhel9:1778244546(Red Hat:ai_inference_server:3.3::el9) | All versions | No fix listed |
| redhat/rhaiis-preview/vllm-cuda-rhel9(Red Hat:ai_inference_server:3) | All versions | No fix listed |
| redhat/rhaiis/vllm-cpu-rhel9(Red Hat:ai_inference_server:3) | All versions | No fix listed |
| redhat/rhaiis/vllm-neuron-rhel9(Red Hat:ai_inference_server:3) | All versions | No fix listed |
| redhat/rhaiis/vllm-tpu-rhel9(Red Hat:ai_inference_server:3) | All versions | No fix listed |
| redhat/ansible-automation-platform-26/lightspeed-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/rhelai3/bootc-aws-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-azure-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-azure-rocm-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-gcp-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-rocm-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhoai/odh-vllm-cpu-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-vllm-cuda-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-vllm-gaudi-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-vllm-rocm-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| ubuntu/cbor2(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/cbor2(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/cbor2(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/cbor2(Ubuntu:26.10) | All versions | No fix listed |
| agronholm cbor2 | < 5.9.0 | 5.9.0 |
References
- https://github.com/agronholm/cbor2/security/advisories/GHSA-3c37-wwvx-h642 exploit vendor-advisory
- https://github.com/agronholm/cbor2/pull/275 issue-tracking patch
- https://github.com/agronholm/cbor2/commit/e61a5f365ba610d5907a0ae1bc72769bba34294b patch
- https://github.com/agronholm/cbor2/releases/tag/5.9.0 product release-notes vendor-advisory
- Debian Security Tracker CVE-2026-26209 vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- github.com
- Red Hat CVE page vendor-advisory
- RHSA-2026:19724 patch vendor-advisory
- RHSA-2026:19725 patch vendor-advisory
- RHSA-2026:16009 patch vendor-advisory
- RHSA-2026:16030 patch vendor-advisory
- RHSA-2026:16174 patch vendor-advisory
- Red Hat Bugzilla 2450422 issue-tracking
- www.cve.org
- Ubuntu CVE tracker vendor-advisory