# CVE-2026-26209: cbor2 has a Denial of Service via Uncontrolled Recursion in cbor2.loads

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 5.9.0 (CNA); fix release not confirmed
- Status: published
- Published: 2026-03-23 · Modified: 2026-03-24
- Aliases: GHSA-3c37-wwvx-h642, PYSEC-2026-2123, UBUNTU-CVE-2026-26209, DEBIAN-CVE-2026-26209, openSUSE-SU-2026:10425-1, CGA-2j6q-pv4h-4wfw, CGA-38gj-xffv-fpp5, CGA-46j9-wxf4-6whx, CGA-5558-34pr-r8m6, CGA-6f6m-h63w-hjhx, CGA-7qhg-chc8-4rhh, CGA-c466-3pr3-57v9, CGA-cwjm-66hr-7j3q, CGA-fm74-4gc7-qwgp, CGA-gfrx-vcx8-c4mh, CGA-hvpx-wrqx-x7q4, CGA-j737-vmhg-34v4, CGA-m8wr-pjvm-74h4, CGA-p24q-p7fp-g239, CGA-pf4g-8377-7832, CGA-q79c-2jr4-7xhh, CGA-vhq9-3526-9jf4, CGA-w39p-483j-mcr6, CGA-xj8f-qhc4-4rhv
- Record: https://cvemate.com/vulnerability/CVE-2026-26209 · JSON: https://cvemate.com/vulnerability/CVE-2026-26209/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.0, CVE.org) CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.533%, percentile 46.505%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- agronholm cbor2: \< 5.9.0
- chainguard authentik (Chainguard): All versions (No fix recorded)
- chainguard authentik-fips (Chainguard): All versions (No fix recorded)
- chainguard localstack (Chainguard): \< 4.14.0-r5
- chainguard py3.10-cbor2 (Chainguard): \< 6.1.1-r0
- chainguard py3.10-vllm-cuda-12.4 (Chainguard): \< 0.18.1-r0
- chainguard py3.11-cbor2 (Chainguard): \< 6.1.1-r0
- chainguard py3.12-cbor2 (Chainguard): \< 6.1.1-r0
- chainguard py3.12-vllm-cuda-12.4 (Chainguard): \< 0.18.1-r0
- chainguard py3.13-cbor2 (Chainguard): \< 6.1.1-r0
- chainguard tritonserver-backend-vllm-cuda-12.9 (Chainguard): \< 25.9.0\_git20260318-r0
- chainguard tritonserver-backend-vllm-cuda-13.0 (Chainguard): \< 25.11-r2
- chainguard vllm-openai-cuda-12.9 (Chainguard): \< 0.17.1-r1
- debian cbor2 (Debian): All versions (No fix recorded) \| \< 5.9.0-1
- ubuntu cbor2 (Ubuntu): All versions (No fix recorded)
- PyPI cbor2 (PyPI): \< 5.9.0
- opensuse python-cbor2&distro=openSUSE Tumbleweed (openSUSE): \< 5.9.0-1.1

## References

- <https://github.com/agronholm/cbor2/security/advisories/GHSA-3c37-wwvx-h642>
- <https://github.com/agronholm/cbor2/pull/275>
- <https://github.com/agronholm/cbor2/commit/e61a5f365ba610d5907a0ae1bc72769bba34294b>
- <https://github.com/agronholm/cbor2/releases/tag/5.9.0>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-26209>
- <https://github.com/agronholm/cbor2>
- <https://ubuntu.com/security/CVE-2026-26209>
- <https://www.cve.org/CVERecord?id=CVE-2026-26209>
- <https://security-tracker.debian.org/tracker/CVE-2026-26209>
- <https://www.suse.com/security/cve/CVE-2026-26209>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/26xxx/CVE-2026-26209.json>

---

Data as of 2026-12-05T10:41:31.873Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
