{"id":"CVE-2026-67216","published":"2026-07-29T13:32:03Z","modified":"2026-07-30T15:19:59Z","title":"cJSON cJSON_Compare Exponential Complexity Denial of Service","vendor":"DaveGamble","product":"cJSON","tier":"tail","description":{"text":"cJSON through 1.7.19 contains an inefficient algorithmic complexity flaw in cJSON_Compare(). When comparing objects, the function recurses into each shared subtree twice, once in each direction, with no depth guard, making the running time exponential in nesting depth. A small, deeply nested document of a few hundred bytes (depth around 40) compared for equality consumes hours of CPU, and the cost roughly doubles with each additional level of nesting. An application that calls cJSON_Compare() on attacker-influenced JSON that is structurally equal to a reference document is exposed to a denial-of-service condition.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00645,"percentile":0.51892,"provenance":"source"},"cwes":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"references":[{"url":"https://joshua.hu/cjson-json-parser-cve-vulnerabilities","tags":["exploit"]},{"url":"https://github.com/DaveGamble/cJSON/blob/v1.7.19/cJSON.c#L3057-L3180","tags":["technical-description"]},{"url":"https://www.vulncheck.com/advisories/cjson-cjson-compare-exponential-complexity-denial-of-service","tags":["third-party-advisory"]}],"priority":{"score":19.5,"factors":[{"name":"EPSS percentile","points":10.38},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"davegamble","affectedVersions":[{"vendor":"DaveGamble","product":"cJSON","versions":["<= 1.7.19"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-30T13:38:48.858891Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-50328","exploited":false,"provenance":"source"},"exploitRefs":["https://joshua.hu/cjson-json-parser-cve-vulnerabilities"]}