cbor2 is vulnerable to Memory Leak
53
Medium Risk
The C extension decoder in cbor2 decodes a definite-length text string larger than 64 KB by reading it in chunks and concatenating them. Each concatenation allocates a new combined string but the previous intermediate string is never released, so memory accumulates for every chunk and is retained for the lifetime of the process. Decoding untrusted CBOR text strings from a network source lets a caller retain large amounts of unreclaimed memory and eventually exhaust available resources. The fix releases each intermediate result before it is overwritten by the concatenated string.
You are affected if you are using a version that falls within the vulnerable range and you decode untrusted CBOR data using the C extension decoder.
cbor2 is vulnerable to Memory Leak in versions 5.6.0 - 5.8.0.
Upgrade the cbor2 library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant