{"id":"CVE-2026-67215","published":"2026-07-29T13:32:02Z","modified":"2026-07-29T15:59:48Z","title":"cJSON JSON Patch copy/add Uncontrolled Recursion Stack Exhaustion","vendor":"DaveGamble","product":"cJSON","tier":"tail","description":{"text":"cJSON through 1.7.19 is vulnerable to uncontrolled recursion leading to stack exhaustion when an untrusted RFC 6902 JSON Patch is applied via cJSONUtils_ApplyPatches() or cJSONUtils_ApplyPatchesCaseSensitive(). A patch containing add and copy operations grafts duplicated subtrees to amplify document depth beyond the parser's nesting limit: cJSON_Delete() recurses with no depth bound, and the cJSON_Duplicate() guard CJSON_CIRCULAR_LIMIT is set to 10000, ten times the parser's 1000-level nesting limit and high enough to overflow a default thread stack. An attacker who can supply the patch document can crash the process, resulting in denial of service.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.007,"percentile":0.48661,"provenance":"source"},"cwes":[{"id":"CWE-674","name":"Uncontrolled Recursion"}],"references":[{"url":"https://joshua.hu/cjson-json-parser-cve-vulnerabilities","tags":["exploit"]},{"url":"https://github.com/DaveGamble/cJSON/blob/v1.7.19/cJSON.c#L253-L261","tags":["technical-description"]},{"url":"https://github.com/DaveGamble/cJSON/blob/v1.7.19/cJSON_Utils.c#L906-L940","tags":["technical-description"]},{"url":"https://www.vulncheck.com/advisories/cjson-json-patch-copy-add-uncontrolled-recursion-stack-exhaustion","tags":["third-party-advisory"]}],"priority":{"score":20.0,"factors":[{"name":"EPSS percentile","points":9.73},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"davegamble","affectedVersions":[{"vendor":"DaveGamble","product":"cJSON","versions":["<= 1.7.19"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-29T14:32:48.962567Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-50327","exploited":false,"provenance":"source"},"exploitRefs":["https://joshua.hu/cjson-json-parser-cve-vulnerabilities"]}