7.5

CVE-2026-26209: agronholm cbor2 Uncontrolled Recursion

CVSS: 7.5v3.0HighAnalyzed
AliasesGHSA-3c37-wwvx-h642PYSEC-2026-2123UBUNTU-CVE-2026-26209
Published 23-03-2026Last modified 24-03-2026

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.

Overall risk
40/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.5/10
010
High · v3.0 (CVE.org)
EPSS score
0.65%
0%100%
Low · +0.23 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 2 · Related 3

Timeline

  1. 23-03-2026
    PublishedVulnerability first disclosed.
  2. 24-03-2026
    Last 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

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

19-09-202619-10-2026
EPSS score
0.65%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Cbor2

    Maturity: poc

Weaknesses

CWE · root cause

Affected 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
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
Show all 11 references