Intel

AIKIDO-2026-242107

cbor2 is vulnerable to Uncontrolled Recursion

GHSA-r668-x5f9-3qp8Published 3 days ago
November 17, 2026

53

CVE Score

Medium

Uncontrolled Recursion

Are you affected? Scan for Free

TL;DR

cbor2.dumps() recursively traverses deeply nested Python containers and can exhaust the native stack. Encoding a sufficiently deep object terminates the Python process with SIGSEGV instead of raising a catchable exception. The available compact advisory reports the issue on the dumps() path; it does not describe the remediation mechanism.

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 encode deeply nested objects with cbor2.dumps().

Package

Versions

6.1.4 - 6.2.0

Fixed in 6.2.1

Background info

cbor2 is vulnerable to Uncontrolled Recursion in versions 6.1.4 - 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