ADVISORIES

Vulnerability

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 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.

27 advisories report this vulnerability, across 7 ecosystems.

Advisories

  • AZL-80541

    CVE-2026-26209 affecting package python-cbor2 5.6.5-2

    CVE-2026-26209 Azure Linux Updated 23 November 2026
  • CGA-2j6q-pv4h-4wfw
    CVE-2026-26209 Chainguard Updated 27 October 2026
  • CGA-38gj-xffv-fpp5
    CVE-2026-26209 Chainguard Updated 5 November 2026
  • CGA-46j9-wxf4-6whx
    CVE-2026-26209 Chainguard Updated 27 October 2026
  • CGA-5558-34pr-r8m6
    CVE-2026-26209 Chainguard Updated 5 November 2026
  • CGA-6f6m-h63w-hjhx
    CVE-2026-26209 Chainguard Updated 5 November 2026
  • CGA-7qhg-chc8-4rhh
    CVE-2026-26209 Chainguard Updated 5 November 2026
  • CGA-c466-3pr3-57v9
    CVE-2026-26209 Chainguard Updated 5 November 2026
  • CGA-cwjm-66hr-7j3q
    CVE-2026-26209 Chainguard Updated 5 November 2026
  • CGA-fm74-4gc7-qwgp
    CVE-2026-26209 Chainguard Updated 5 November 2026
  • CGA-gfrx-vcx8-c4mh
    CVE-2026-26209 Chainguard Updated 5 November 2026
  • CGA-hvpx-wrqx-x7q4
    CVE-2026-26209 Chainguard Updated 5 November 2026
  • CGA-j737-vmhg-34v4
    CVE-2026-26209 Chainguard Updated 5 November 2026
  • CGA-m8wr-pjvm-74h4
    CVE-2026-26209 Chainguard Updated 5 November 2026
  • CGA-p24q-p7fp-g239
    CVE-2026-26209 Chainguard Updated 5 November 2026
  • CGA-pf4g-8377-7832
    CVE-2026-26209 Chainguard Updated 5 November 2026
  • CGA-q79c-2jr4-7xhh
    CVE-2026-26209 Chainguard Updated 5 November 2026
  • CGA-vhq9-3526-9jf4
    CVE-2026-26209 Chainguard Updated 27 October 2026
  • CGA-w39p-483j-mcr6
    CVE-2026-26209 Chainguard Updated 27 October 2026
  • CGA-xj8f-qhc4-4rhv
    CVE-2026-26209 Chainguard Updated 5 November 2026
  • DEBIAN-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 uncontrolled recursion…

    CVE-2026-26209 Debian Updated 1 October 2026
  • GHSA-3c37-wwvx-h642

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

    High CVE-2026-26209 PyPI Updated 10 September 2026
  • PYSEC-2026-2123

    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…

    CVE-2026-26209 PyPI Updated 13 July 2026
  • SUSE-SU-2026:21139-1

    Security update for python-cbor2

    CVE-2025-68131CVE-2026-26209 SUSE Updated 22 April 2026
  • UBUNTU-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 uncontrolled recursion…

    CVE-2026-26209 Ubuntu Updated 17 October 2026
  • openSUSE-SU-2026:10425-1

    python311-cbor2-5.9.0-1.1 on GA media

    CVE-2026-26209 openSUSE Updated 26 March 2026
  • openSUSE-SU-2026:20468-1

    Security update for python-cbor2

    CVE-2025-68131CVE-2026-26209 openSUSE Updated 10 April 2026

References