Skip to main content

Cbor2 CVE-2026-26209

| EUVDEUVD-2026-14478 HIGH
Uncontrolled Recursion (CWE-674)
2026-03-23 GitHub_M GHSA-3c37-wwvx-h642
7.5
CVSS 3.0 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft deeply nested CBOR structure
  2. Delivery
    Send to cbor2 decoder
  3. Exploit
    Trigger uncontrolled recursion
  4. Execution
    Exceed Python recursion limit
  5. Impact
    Crash worker process

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
Exploitation Conditions

Remote unauthenticated attacker sends crafted CBOR-encoded data containing deeply nested structures to any application using cbor2 versions prior to 5.9.0. No special configuration required; vulnerability exists in default installations. C extension _cbor2 and pure Python implementation both affected.

Impact

This vulnerability presents a high real-world risk despite lacking KEV listing or public EPSS scoring. The CVSS 3.0 score of 7.5 (AV:N/AC:L/PR:N/UI:N) indicates a remotely exploitable attack with low complexity requiring no authentication or user interaction, targeting availability exclusively (A:H). The attack is highly automatable and can be weaponized against any internet-facing service accepting CBOR input. The technical impact is significant because modern web architectures using process-per-worker models (Gunicorn, Uvicorn, Celery) will crash worker processes on RecursionError, and repeated attacks can sustain complete service outages. The small payload size (under 100KB) means attackers can launch bandwidth-efficient attacks. The availability of detailed technical information in the GitHub Security Advisory (GHSA-3c37-wwvx-h642) and a merged patch (PR #275) suggests the vulnerability is well-understood and likely to be exploited if applications remain unpatched. This is a genuine priority requiring immediate action for any service processing untrusted CBOR data.

Exploit ScenarioDerived

An attacker identifies a public API endpoint that accepts CBOR-encoded requests, such as a REST API using CBOR for efficient binary serialization or a message queue consumer processing CBOR messages. The attacker crafts a malicious CBOR payload containing approximately 100,000 nested arrays (each represented by byte 0x81), resulting in a file size under 100KB, and sends it to the vulnerable endpoint. When the application calls cbor2.loads() to decode the payload, the recursive parsing exhausts the stack and raises a RecursionError, immediately crashing the worker process. By automating this attack and sending a continuous stream of these payloads, the attacker can crash all worker processes faster than they can respawn, effectively rendering the service unavailable to legitimate users.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 23, 2026

The cbor2 Python library, which implements CBOR serialization, suffers from uncontrolled recursion when decoding deeply nested CBOR structures, allowing remote attackers to trigger Denial of Service by sending crafted payloads containing approximately 100,000 nested arrays. All versions prior to 5.9.0 are affected, including both the pure Python implementation and the C extension. Attackers can crash worker processes in web servers (Gunicorn, Uvicorn) and task queues (Celery) with small malicious packets under 100KB, causing complete service outages through repeated worker crashes.

RemediationAI

Upgrade cbor2 to version 5.9.0 or later immediately, as documented in the release notes at https://github.com/agronholm/cbor2/releases/tag/5.9.0. The fix is implemented in commit e61a5f365ba610d5907a0ae1bc72769bba34294b (https://github.com/agronholm/cbor2/commit/e61a5f365ba610d5907a0ae1bc72769bba34294b) and merged via pull request #275 (https://github.com/agronholm/cbor2/pull/275). For environments where immediate patching is not feasible, implement input validation to reject CBOR payloads exceeding a reasonable size threshold (e.g., 50KB) and deploy rate limiting on endpoints accepting CBOR data to mitigate repeated crash attempts. Consider switching to alternative serialization formats (JSON, MessagePack) if CBOR is not strictly required. Review application monitoring to detect and alert on repeated worker crashes that may indicate active exploitation.

Affected VersionsENISA

cbor2 < 5.9.0

Affected Packages

pypi cbor2 fix: 5.9.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

cbor2 (CPE: cpe:2.3:a:agronholm:cbor2) is a Python library providing encoding and decoding for CBOR (Concise Binary Object Representation), a binary data serialization format defined in RFC 8949. The vulnerability stems from CWE-674 (Uncontrolled Recursion), where the library fails to enforce a hard depth limit when parsing nested CBOR structures. Both the pure Python implementation and the C extension _cbor2 are affected; the C extension relies on Python's Py_EnterRecursiveCall mechanism rather than implementing its own data-driven depth constraints. When processing deeply nested arrays (marked by CBOR byte 0x81), the recursive decoding calls exhaust either the Python interpreter's recursion limit or the stack memory, resulting in RecursionError exceptions that terminate the process. This vulnerability is triggered during the cbor2.loads() function call when parsing malicious CBOR payloads.

Know when Cbor2 gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
SUSE HIGH
Red Hat 5.5 MEDIUM

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Mar 23, 2026 - 18:53 nvd
HIGH 7.5

DescriptionGitHub Advisory

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.

Executive ViewAI

Why It Matters

Organizations using the cbor2 Python library face immediate service disruption risk, as attackers can crash application workers with small malicious packets, causing complete outages. This affects any infrastructure running web services or task queues that decode CBOR data, and no patch is currently available, requiring urgent defensive measures.

Business Impact: High
Compensating Controls

Implement Web Application Firewall (WAF) rules to detect and block deeply nested CBOR structures and payloads exceeding normal size thresholds; enforce strict request size limits (e.g., <10KB for CBOR); add recursion depth monitoring and limits in application code before cbor2 deserialization; isolate CBOR processing in resource-limited containers with automatic restart policies; implement rate limiting on CBOR endpoints; disable CBOR functionality where not essential; segment untrusted input sources at network level; deploy request validation to reject suspicious patterns prior to deserialization.

Threat Intelligence Overview

EPSS Score
0.0%
Top 86% exploitable
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

SUSE

Severity: High
Product Status
openSUSE Leap 16.0 Fixed
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise Server 16.0 Affected
SUSE Linux Enterprise Server 16.0 Fixed
SUSE Linux Enterprise Server 16.1 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy