
CVE catalog
CVE-2026-26209
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 unco
- Severity
- High · CVSS 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.40% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | cbor2 | sid | 6.1.2-2 | fixed |
| Debian | cbor2 | forky | 6.1.2-2 | fixed |
| Debian | cbor2 | trixie | 5.6.5-1 | vulnerable |
| Debian | cbor2 | bookworm | 5.4.6-1 | vulnerable |
| Pip | cbor2 | Not reported | 5.9.0 | fixed |
| Cpe | cbor2 | Not reported | Not reported | vulnerable |
| PyPI | cbor2 | Not reported | 5.9.0 | fixed |
| Opensuse | python-cbor2 | tumbleweed | 5.9.0-1.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | cbor2 | source | sid | 5.9.0-1 | not yet assigned | Not reported | Not reported |
| Debian | cbor2 | source | forky | 5.9.0-1 | not yet assigned | Not reported | Not reported |
| Debian | cbor2 | source | trixie | (unfixed) | not yet assigned | Not reported | Not reported |
| Debian | cbor2 | source | bookworm | (unfixed) | not yet assigned | Not reported | Not reported |
| Pip | cbor2 | pip | Not reported | 5.9.0 | Not reported | Not reported | Not reported |
| PyPI | cbor2 | PyPI | Not reported | 5.9.0 | Not reported | GHSA-3C37-WWVX-H642 | Not reported |
| Opensuse | python-cbor2 | rpm | tumbleweed | 5.9.0-1.1 | Not reported | OPENSUSE-SU-2026:10425-1 | Not reported |
Notes
[trixie] cbor2: Minor issue [bookworm] cbor2: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-cbor2]Affected
Source package: [cbor2]
Details (2)
5.4.6-1+b1· amd64 · bookwormAffected
nvd · cbor2 · debian · bookworm; nvd · cbor2 · debian · 12
5.4.6-1+b1· arm64 · bookwormAffected
nvd · cbor2 · debian · bookworm; nvd · cbor2 · debian · 12
- [python-cbor2-doc]Affected
Source package: [cbor2]
Details (2)
5.4.6-1· all · bookwormAffected
nvd · cbor2 · debian · bookworm; nvd · cbor2 · debian · 12
5.4.6-1· all · bookwormAffected
nvd · cbor2 · debian · bookworm; nvd · cbor2 · debian · 12
[Debian 13 (Trixie)]
- [python3-cbor2]Affected
Source package: [cbor2]
Details (4)
5.6.5-1· amd64 · trixieAffected
nvd · cbor2 · debian · 13
5.6.5-1· arm64 · trixieAffected
nvd · cbor2 · debian · 13
5.9.0-2~bpo13+2· amd64 · trixie-backportsAffected
nvd · cbor2 · debian · 13
5.9.0-2~bpo13+2· arm64 · trixie-backportsAffected
nvd · cbor2 · debian · 13
- [python-cbor2-doc]Affected
Source package: [cbor2]
Details (4)
5.6.5-1· all · trixieAffected
nvd · cbor2 · debian · 13
5.6.5-1· all · trixieAffected
nvd · cbor2 · debian · 13
5.9.0-2~bpo13+2· all · trixie-backportsAffected
nvd · cbor2 · debian · 13
5.9.0-2~bpo13+2· all · trixie-backportsAffected
nvd · cbor2 · debian · 13
[openSUSE Tumbleweed]
- [python313-cbor2]Unknown
Source package: [python-cbor2]
Details (1)
5.9.0-1.5· x86_64 · tumbleweedUnknown · Fixed:
5.9.0-1.1Version impact unknown
nvd · python-cbor2 · opensuse · tumbleweed
- [python314-cbor2]Unknown
Source package: [python-cbor2]
Details (1)
5.9.0-1.5· x86_64 · tumbleweedUnknown · Fixed:
5.9.0-1.1Version impact unknown
nvd · python-cbor2 · opensuse · tumbleweed
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_10425-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-26209]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-26209]
- [https://osv.dev/vulnerability/GHSA-3c37-wwvx-h642]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:10425-1]
- [https://security-tracker.debian.org/tracker/CVE-2026-26209]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-26209.json]
[Debian Security Tracker] · [FIRST EPSS] · [GitHub Advisory Database] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]