cbor2 is vulnerable to Uncontrolled Recursion
75
CVE Score
High
Uncontrolled Recursion
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.
Upgrade the cbor2 library to the patch version.
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.
6.0.0 - 6.2.0
Fixed in 6.2.1cbor2 is vulnerable to Uncontrolled Recursion in versions 6.0.0 - 6.2.0.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.