CVE-2026-67215
JSON

8.7high

cJSON JSON Patch copy/add Uncontrolled Recursion Stack Exhaustion

Severity
8.7high CVSS:4.0 by VulnCheck
Exploit likelihood
0.46% (higher than 41% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck

Description

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.

Affected

Product or packageVersionsReported by
DaveGamble cJSONup to 1.7.19CVE List, NVD

All scores

VulnCheck8.7high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
VulnCheck7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-674

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

NVD (es)

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.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-67215 changed 2026-11-28CVE Terms of Use
NVDCVE-2026-67215 changed 2026-10-23Public domain