Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-26209

HIGH 7.5EPSS 51%

cbor2 has a Denial of Service via Uncontrolled Recursion in cbor2.loads

Also known as GHSA-3c37-wwvx-h642, PYSEC-2026-2123

Mitigation

  • Upgrade cbor2 to 5.9.0 or later.

Who should check

  • Projects that depend on PyPI package cbor2 (< 5.9.0)
  • Anyone running agronholm cbor2 < 5.9.0

Vulnerability facts

Affected
cbor2 < 5.9.0
Fixed in
5.9.0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
7.5 (v3.0, CNA)CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
EPSS
0.75% chance of exploitation in 30 days (percentile 51, 2026-11-26)
CWE
CWE-674
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
PyPI cbor2< 5.9.05.9.0osv
agronholm cbor2< 5.9.0—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-26209. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-26209.md
Affected: cbor2 < 5.9.0
Fixed in: 5.9.0

Steps:
1. Search this machine and project for cbor2 (PyPI), agronholm cbor2: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-26209 being exploited?

There is no confirmed exploitation: CVE-2026-26209 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.75% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-26209?

High: CVSS 7.5 (v3.0, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2026-26209?

cbor2 < 5.9.0.

Is there a fix for CVE-2026-26209?

Yes. Fixed in 5.9.0. Upgrade cbor2 to 5.9.0 or later.

How do I check if I'm affected by CVE-2026-26209?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors