json is vulnerable to Buffer Overflow
73
High Risk
The Ruby json gem's native generator can compute output buffer capacity using an unchecked size_t multiply when repeating indent or spacing strings during JSON.generate. If the product overflows, the buffer may be allocated too small and subsequent writes can corrupt heap memory. The same release also allows an extremely large generator depth option that can drive excessive nesting work and availability loss. Before the patch, these conditions were reachable when generation options or structure are influenced by untrusted input. The patch multiplies buffer sizes safely and rejects pathological depth values.
You are affected if you are using a version that falls within the vulnerable range.
json is vulnerable to Buffer Overflow in versions 0.0.1 - 2.19.5.
Upgrade the json 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.

SOC 2Compliant
ISO 27001Compliant