Vulnerability · Published Jul 29, 2026 · Assigned by VulnCheck

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

High 7.5

In plain English

A high-severity security flaw in cJSON from DaveGamble. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 53% of all known vulnerabilities).

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.7%top 46.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12cjsonno fix listedDEBIAN-CVE-2026-67215
Debian:13cjsonno fix listedDEBIAN-CVE-2026-67215
Debian:14cjsonno fix listedDEBIAN-CVE-2026-67215
Ubuntu:26.04:LTScjsonno fix listedUBUNTU-CVE-2026-67215
Ubuntu:26.10cjsonno fix listedUBUNTU-CVE-2026-67215

Affected products (as reported)

VendorProductVersions
DaveGamble cJSON 0 – through 1.7.19

Weakness: CWE-674 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References