Intel

AIKIDO-2026-133297

cbor2 is vulnerable to Uncontrolled Recursion

GHSA-55vx-2phh-7grrPublished 3 days ago
November 17, 2026

75

CVE Score

High

Uncontrolled Recursion

Are you affected? Scan for Free

TL;DR

CBOR shared-reference tags can construct a deeply nested object graph while the decoder's parse-frame depth remains limited. If that graph is used as a map key or set member, Python's native hashing recursively traverses it and can overflow the C stack, terminating the process with SIGSEGV. The affected path is decoding untrusted CBOR with shared-reference tags enabled, which is the default.

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() while shared-reference tags are enabled.

Package

Versions

5.0.0 - 6.1.5

Fixed in 6.2.0

Background info

cbor2 is vulnerable to Uncontrolled Recursion in versions 5.0.0 - 6.1.5.

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