cJSON JSON Patch Flaw Enables Stack Exhaustion Denial of Service
Vulnerability Disclosure · 2 sources · Updated 4mo ago · First seen Jul 29, 2026

A high-severity denial-of-service vulnerability, CVE-2026-67215, has been disclosed in DaveGamble cJSON through version 1.7.19. The flaw affects applications that process untrusted RFC 6902 JSON Patch input with cJSONUtils_ApplyPatches() or cJSONUtils_ApplyPatchesCaseSensitive(), where crafted add and copy operations can duplicate subtrees and drive document depth far beyond expected limits.
The crash occurs because cJSON_Delete() can recurse without a depth bound, leading to stack exhaustion. Advisory details note that CJSON_CIRCULAR_LIMIT is set to 10000, substantially higher than the parser's roughly 1000-level nesting limit, creating a path for remote attackers with no privileges or user interaction to terminate affected processes. The issue is tracked as CWE-674 and carries a CVSS v3.1 score vector of AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, reflecting high availability impact.
Why it matters
Impact assessment
CVE-2026-67215 is a high-severity denial-of-service flaw in DaveGamble cJSON through version 1.7.19 that affects applications accepting untrusted RFC 6902 JSON Patch input. The primary impact is process termination from stack exhaustion, creating operational disruption for APIs, services, and embedded applications that use cJSON utility patch functions on attacker-controlled data.
The exposure is potentially broad because cJSON is a widely used C JSON library, but exploitation is conditional on the application invoking cJSONUtils_ApplyPatches() or cJSONUtils_ApplyPatchesCaseSensitive() on untrusted patch documents. No confirmed in-the-wild exploitation is provided in the references, but the attack requires no privileges or user interaction and is remotely reachable where patch input is exposed over a network.
Affected populations
- Organizations running software that embeds DaveGamble cJSON through version
1.7.19 - API services or back-end components that accept RFC 6902 JSON Patch from external users or partner systems
- Products written in C/C++ that use cJSON utility patch functions for document modification
Severity and business effect
- Availability impact is high: attacker-supplied input can crash the target process
- Confidentiality and integrity impact are not indicated in the CVSS vectors
- Likely consequences include service interruption, failed transactions, degraded customer experience, and potential restart loops if malicious requests are replayed
Scope and exploitation status
- Scope is broad at the library level but practically limited to deployments that process untrusted JSON Patch input
- Attack complexity is low and requires no authentication if the vulnerable patch endpoint is exposed
- No specific victim incidents or exploitation-in-the-wild reports are cited in the provided references


