CVE-2026-67216: cJSON cJSON_Compare Exponential Complexity Denial of Service
cJSON through 1.7.19 contains an inefficient algorithmic complexity flaw in cJSONCompare(). 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 cJSONCompare() on attacker-influenced JSON that is structurally equal to a reference document is exposed to a denial-of-service condition.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2026-67216?
CVE-2026-67216 has a medium severity score of 5.9.
What is the nature of the vulnerability in CVE-2026-67216?
CVE-2026-67216 is an exponential complexity Denial of Service vulnerability in the cJSON library's cJSON_Compare function due to inefficient recursion.
How do I fix CVE-2026-67216?
To fix CVE-2026-67216, update cJSON to a version later than 1.7.19 where the vulnerability has been addressed.
What impact does CVE-2026-67216 have on applications using cJSON?
CVE-2026-67216 can lead to Denial of Service by exhausting resources when comparing deeply nested JSON objects.
Is CVE-2026-67216 easily exploitable?
CVE-2026-67216 is considered easily exploitable if an application relies on comparing untrusted deeply nested JSON documents.