cbor2 is vulnerable to Uncontrolled Recursion
75
CVE Score
High
Uncontrolled Recursion
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.
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() while shared-reference tags are enabled.
5.0.0 - 6.1.5
Fixed in 6.2.0cbor2 is vulnerable to Uncontrolled Recursion in versions 5.0.0 - 6.1.5.
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.