Intel

AIKIDO-2026-626634

cbor2 is vulnerable to Uncontrolled Recursion

GHSA-6rgc-8hxm-rj7pPublished 3 days ago
November 17, 2026

75

CVE Score

High

Uncontrolled Recursion

Are you affected? Scan for Free

TL;DR

Decoding shared-reference CBOR can create a CBORTag whose value refers to itself. Hashing, comparing, or representing the cyclic tag recursively overflows the native stack and can terminate the Python process with SIGSEGV, including during map-key or set-element decoding. The fix adds recursion guards for hashing and comparison and renders recursive representations safely.

How do I fix this?

Upgrade the cbor2 library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and decode untrusted CBOR with cbor2.loads(), especially when a cyclic CBORTag is hashed, compared, or represented.

Package

Versions

6.0.0 - 6.2.0

Fixed in 6.2.1

Background info

cbor2 is vulnerable to Uncontrolled Recursion in versions 6.0.0 - 6.2.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea