CVE-2026-67215
published high CVSS 4.0 · 8.7cJSON JSON Patch copy/add Uncontrolled Recursion Stack Exhaustion
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| DaveGamble | — | cJSON0 through 1.7.19 · Other versions: affected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.5 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| DaveGamble | cJSON | 0 through 1.7.19 (affected · semver)Default: affected | VulnCheck · cna |
Weaknesses
1- CWE-674 Uncontrolled Recursion
References
4- cJSON_Delete unbounded recursion (cJSON.c) https://github.com/DaveGamble/cJSON/blob/v1.7.19/cJSON.c#L253-L261
- apply_patch copy/add duplicate-and-graft (cJSON_Utils.c) https://github.com/DaveGamble/cJSON/blob/v1.7.19/cJSON_Utils.c#L906-L940
- Security vulnerabilities in the cJSON JSON parser (Joshua Rogers) https://joshua.hu/cjson-json-parser-cve-vulnerabilities
- VulnCheck Advisory: cJSON JSON Patch copy/add Uncontrolled Recursion Stack Exhaustion https://www.vulncheck.com/advisories/cjson-json-patch-copy-add-uncontrolled-recursion-stack-exhaustion
Provider assertions
2VulnCheck · cna
cJSON JSON Patch copy/add Uncontrolled Recursion Stack Exhaustion
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- df54edf03ce53f9876a90c430cc9c0652f7cce3f9bb46558c8efbd0e65017515
- Ingested
- 28 Nov 2026, 15:38:51 UTC
- Source record
- Official CVE record