# CVE-2026-67215: cJSON JSON Patch copy/add Uncontrolled Recursion Stack Exhaustion

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2026-07-29 · Modified: 2026-11-28
- Aliases: UBUNTU-CVE-2026-67215, DEBIAN-CVE-2026-67215
- Record: https://cvemate.com/vulnerability/CVE-2026-67215 · JSON: https://cvemate.com/vulnerability/CVE-2026-67215/json

## 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.
```

## Signals

- CVSS: 8.7 high (v4.0, CVE.org) 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
- EPSS: 0.463%, percentile 41.801%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- davegamble cjson: ≤ 1.7.19
- debian cjson (Debian): All versions (No fix recorded) \| \< 1.7.19-3
- ubuntu cjson (Ubuntu): All versions (No fix recorded)

## References

- <https://joshua.hu/cjson-json-parser-cve-vulnerabilities>
- <https://github.com/DaveGamble/cJSON/blob/v1.7.19/cJSON.c#L253-L261>
- <https://github.com/DaveGamble/cJSON/blob/v1.7.19/cJSON_Utils.c#L906-L940>
- <https://www.vulncheck.com/advisories/cjson-json-patch-copy-add-uncontrolled-recursion-stack-exhaustion>
- <https://ubuntu.com/security/CVE-2026-67215>
- <https://www.cve.org/CVERecord?id=CVE-2026-67215>
- <https://security-tracker.debian.org/tracker/CVE-2026-67215>
- <https://github.com/DaveGamble/cJSON/pull/1115>

---

Data as of 2026-12-05T04:45:26.576Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
