CVE-2026-67215 Details
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.
A vulnerability in cJSON versions through 1.7.19 allows for uncontrolled recursion, causing stack exhaustion. This occurs when an untrusted RFC 6902 JSON Patch is applied using the cJSONUtils_ApplyPatches() or cJSONUtils_ApplyPatchesCaseSensitive() functions. The vulnerability arises because a patch containing 'add' and 'copy' operations can duplicate subtrees, increasing the document's depth beyond the parser's nesting limit. The cJSON_Delete() function then recurses without a depth restriction, leading to a stack overflow. An attacker who can provide the patch document can crash the process, causing a denial-of-service condition.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 29, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://joshua.hu/cjson-json-parser-cve-vulnerabilities | CISA-ADP | ExploitPress/Media CoverageThird Party Advisory |
| https://github.com/DaveGamble/cJSON/blob/v1.7.19/cJSON.c#L253-L261 | [email protected] | Patch |
| https://github.com/DaveGamble/cJSON/blob/v1.7.19/cJSON_Utils.c#L906-L940 | [email protected] | Patch |
| https://joshua.hu/cjson-json-parser-cve-vulnerabilities | [email protected] | ExploitPress/Media CoverageThird Party Advisory |
| https://www.vulncheck.com/advisories/cjson-json-patch-copy-add-uncontrolled-recursion-stack-exhaustion | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-674 | Uncontrolled Recursion | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| davegamble cjson | <= 1.7.19 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 23, 2026 | CVE Translated | [email protected] |
| Aug 4, 2026 | Initial Analysis | [email protected] |
| Jul 29, 2026 | CVE Modified | [email protected] |
| Jul 29, 2026 | CVE Modified | CISA-ADP |
| Jul 29, 2026 | New CVE Received | [email protected] |