Impact
A recursion flaw in the cJSON library versions up to and including 1.7.19 allows an attacker to cause stack exhaustion by applying a crafted RFC 6902 JSON Patch that repeatedly copies and adds nested objects. The flaw manifests when cJSON_Delete and cJSON_Duplicate recurse without a practical bound, exceeding the parser’s 1000‑level nesting limit and destroying the process’s thread stack. This is a classic uncontrolled recursion vulnerability (CWE‑674) with a CVSS score of 8.7, reflecting a high‑severity denial‑of‑service impact.
Affected Systems
The vulnerability affects the cJSON library developed by DaveGamble. Any build of the library with a version number 1.7.19 or earlier is susceptible; newer releases are currently unimplicated.
Risk and Exploitability
The EPSS score is below 1 % and the issue is not listed in the CISA KEV catalog, indicating a low probability of widespread exploitation at present. Nonetheless, the attack vector is straightforward: an attacker who can supply a JSON Patch input to the vulnerable cJSONUtils_ApplyPatches functions can trigger the recursion, causing the host process to crash and deny service. No additional privileges or pre‑existing access are required beyond the ability to deliver the patch document.
OpenCVE Enrichment