{"id":"CVE-2026-67215","aliases":["CVE-2026-67215"],"related":[],"kind":"vulnerability","state":"published","title":"cJSON JSON Patch copy/add Uncontrolled Recursion Stack Exhaustion","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"cJSON hasta la versión 1.7.19 es vulnerable a una recursión incontrolada que conduce al agotamiento de la pila cuando se aplica un parche JSON RFC 6902 no confiable a través de cJSONUtils_ApplyPatches() o cJSONUtils_ApplyPatchesCaseSensitive(). Un parche que contiene operaciones de adición y copia injerta subárboles duplicados para amplificar la profundidad del documento más allá del límite de anidamiento del analizador: cJSON_Delete() recurre sin límite de profundidad, y el guardián CJSON_CIRCULAR_LIMIT de cJSON_Duplicate() está configurado en 10000, diez veces el límite de anidamiento de 1000 niveles del analizador y lo suficientemente alto como para desbordar una pila de hilos predeterminada. Un atacante que puede proporcionar el documento del parche puede bloquear el proceso, lo que resulta en denegación de servicio.","source":"nvd"}],"published":"2026-07-29T13:32:02.975Z","modified":"2026-11-28T15:37:26.675Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-674"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"1.7.19","status":"affected"}],"vendor":"DaveGamble","product":"cJSON","source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"1.7.19"}],"vendor":"davegamble","product":"cjson","cpe":"cpe:2.3:a:davegamble:cjson:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://joshua.hu/cjson-json-parser-cve-vulnerabilities","tags":["exploit","press/media-coverage","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/DaveGamble/cJSON/blob/v1.7.19/cJSON.c#L253-L261","tags":["patch","technical-description"],"sources":["cvelist","nvd"]},{"url":"https://github.com/DaveGamble/cJSON/blob/v1.7.19/cJSON_Utils.c#L906-L940","tags":["patch","technical-description"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/cjson-json-patch-copy-add-uncontrolled-recursion-stack-exhaustion","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["Joshua Rogers","CHEN CHIA HSUAN (Chung Yuan Christian University)"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-07-29T14:32:48.962Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-67215","url":"https://www.cve.org/CVERecord?id=CVE-2026-67215","licence":"CVE Terms of Use","modified":"2026-11-28T15:37:26.675Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-67215","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-67215","licence":"Public domain","modified":"2026-10-23T23:10:00.157Z"}],"updatedAt":"2026-11-28T15:42:08.255Z","epss":{"score":0.00463,"percentile":0.41791,"date":"2026-12-01T12:00:22.000Z"}}