CVE-2026-26209: agronholm cbor2 Uncontrolled Recursion
Vulnerability summary
CVE-2026-26209 is a high (CVSS 7.5) Uncontrolled Recursion vulnerability in agronholm cbor2. EPSS estimates a 0.65% chance of exploitation in the next 30 days, higher than 50.1% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 2 · Related 3Timeline
- 23-03-2026PublishedVulnerability first disclosed.
- 24-03-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 6 sources · 1 version- OSV · PypiEcosystem advisory · calculated7.5HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · ChainguardEcosystem advisory · calculated7.5HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST7.5HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.65%
Chance of exploitation in the next 30 days
Percentile
50%
Versus all other CVEs
30-day change
+0.23 pp
From 0.42% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundCbor2
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Chainguard12 products
- authentikAll versions (No fix recorded)
- authentik-fipsAll versions (No fix recorded)
- localstack< 4.14.0-r5
- py3.10-cbor2< 6.1.1-r0
- py3.10-vllm-cuda-12.4< 0.18.1-r0
Agronholm1 product
- cbor2< 5.9.0
Debian1 product
- cbor2All versions (No fix recorded) | < 5.9.0-1
Opensuse1 product
- python-cbor2&distro=openSUSE Tumbleweed< 5.9.0-1.1
PyPI1 product
- cbor2< 5.9.0
Ubuntu1 product
- cbor2All versions (No fix recorded)
6 vendors · 17 products
References
11 links- github.com/agronholm/cbor2/security/advisories/GHSA-3c37-wwvx-h642X Refsource CONFIRMWEBEVIDENCEREPORTAdvisoryExploitVendor Advisory
- github.com/agronholm/cbor2/commit/e61a5f365ba610d5907a0ae1bc72769bba34294bX Refsource MISCWEBFIXREPORTPatch
- github.com/agronholm/cbor2PACKAGE