Intel

AIKIDO-2026-746069

cbor2 is vulnerable to Denial of Service (DoS)

Denial of Service (DoS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 22, 2026

53

Medium Risk

This Affects:

PYTHONcbor2
6.0.0 - 6.1.2
Fixed in 6.1.3
Are you affected? Scan for Free

TL;DR

The Rust-based decoder accumulates indefinite-length and large definite-length byte and text strings by concatenating each decoded chunk onto the running result with +, reallocating and copying the whole buffer on every chunk. Decoding attacker-supplied CBOR that uses many indefinite-length chunks or very large strings therefore takes time quadratic in the input size. An attacker who can submit CBOR to a decoder can force excessive CPU consumption and stall processing with a moderately sized payload. The fix builds each string once using writer-based accumulation and validates indefinite-string chunk sizes.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and decoding CBOR data from untrusted sources.

Background info

cbor2 is vulnerable to Denial of Service (DoS) in versions 6.0.0 - 6.1.2.

How to fix this

Upgrade the cbor2 library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform