CVE-2026-67215: DaveGamble cJSON uncontrolled recursion in cJSONUtils_ApplyPatches

CVE-2026-67215 · Severity: high · CVSS 7.5 · Published 2026-07-29

cJSON is a widely used library for parsing and manipulating JSON data in C-based applications and embedded firmware. A flaw in how the library handles 'JSON Patch' updates allows an attacker to provide a specially crafted file that causes the application to crash. This results in a denial of service, potentially disrupting operations or taking down services that rely on this library to process data.

Technologies: DaveGamble cJSON. Vendors: DaveGamble.

Quick answers

Is CVE-2026-67215 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-67215 being exploited in the wild.
How severe is CVE-2026-67215?
High severity, with a CVSS score of 7.5, published 29 July 2026.
Which products and versions are affected?
DaveGamble cJSON through 1.7.19.
Is there a fix for CVE-2026-67215?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2026-67215 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-67215?
Check whether you run DaveGamble cJSON at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A vulnerability exists in cJSON through version 1.7.19 within the cJSONUtils_ApplyPatches() and cJSONUtils_ApplyPatchesCaseSensitive() functions. The issue stems from uncontrolled recursion during the processing of RFC 6902 JSON Patches containing 'add' and 'copy' operations. These operations can be used to graft duplicated subtrees, amplifying document depth beyond the parser's 1000-level nesting limit. Because cJSON_Delete() lacks recursion depth bounds and the cJSON_Duplicate() guard (CJSON_CIRCULAR_LIMIT) is set to 10,000—significantly higher than the parser's limit—an attacker can trigger a stack overflow. This results in a process crash (Denial of Service). No patch is currently available as development of the library is reportedly stagnant.

Affected products

  • DaveGamble cJSON through 1.7.19

Timeline

  • 2026-07-29: disclosed: Vulnerability published in NVD and by researcher Joshua Rogers.

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.