Approved changes feed: RSS · Atom

cpe:2.3:a:agronholm:cbor2:*:*:*:*:*:*:*:*

part: a version: * update: *

VendorAgronholm (1b77875b-f20a-5f04-9a3f-ceb43a676654)
ProductCbor2 (00ac7877-91a5-51d0-96ea-1a37864395e2)
Edition*
Language*
Software edition*
Target software*
Target hardware*
Other*
NotesImported from purl2cpe mapping

PURL mappings

PURLSourceLast updated
pkg:github/agronholm/cbor2 purl2cpe 2026-06-01 10:16:35.276020

Vulnerability references

IdentifiercpeApplicabilitySubmitteddb.gcve.eu detailsRationale
CVE:CVE-2026-26209 vulnerable 2026-06-08 07:53:21.409595 cbor2 has a Denial of Service via Uncontrolled Recursion in cbor2.loads
HIGH (7.5)
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.
Published: 2026-03-23T18:53:10.268Z
Updated: 2026-03-24T18:35:35.486Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2025-68131 vulnerable 2026-06-08 07:41:20.855387 CBORDecoder reuse can leak shareable values across decode calls
cbor2 provides encoding and decoding for the Concise Binary Object Representation (CBOR) serialization format. Starting in version 3.0.0 and prior to version 5.8.0, whhen a CBORDecoder instance is reused across multiple decode operations, values marked with the shareable tag (28) persist in memory and can be accessed by subsequent CBOR messages using the sharedref tag (29). This allows an attacker-controlled message to read data from previously decoded messages if the decoder is reused across trust boundaries. Version 5.8.0 patches the issue.
Published: 2025-12-31T01:15:36.827Z
Updated: 2026-01-02T14:37:55.705Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2024-26134 vulnerable 2026-06-08 06:31:24.861051 CBOR2 decoder has potential buffer overflow
HIGH (7.5)
cbor2 provides encoding and decoding for the Concise Binary Object Representation (CBOR) (RFC 8949) serialization format. Starting in version 5.5.1 and prior to version 5.6.2, an attacker can crash a service using cbor2 to parse a CBOR binary by sending a long enough object. Version 5.6.2 contains a patch for this issue.
Published: 2024-02-19T22:13:47.173Z
Updated: 2025-02-13T17:41:03.627Z
Reference links
Imported from gcve-enriched-dumps CVE data

Contribute

You can submit an edit proposal for this CPE entry or suggest a related product/vendor addition using the action button above.