7.5

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

Analyzed
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.53% chance of exploitation in the next 30 days, higher than 46.5% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Prioritisepublic exploit

Public exploit (GitHub, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
7.5/10
010
High · v3.0 (CVE.org)
EPSS score
0.53%
0%100%
Low · +0.14 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware 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.53%

Chance of exploitation in the next 30 days

Percentile

47%

Versus all other CVEs

30-day change

Increase +0.14 pp

From 0.40% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Cbor2

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

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