# CVE-2026-67216: cJSON cJSON_Compare Exponential Complexity Denial of Service

- Severity: High 8.2 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 38% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-29T13:32:03.696Z
- Modified: 2026-10-23T23:10:00.157Z
- Weaknesses: CWE-407
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- DaveGamble cJSON: up to 1.7.19

## Every score

- VulnCheck: CVSS:4.0 8.2 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://joshua.hu/cjson-json-parser-cve-vulnerabilities> (exploit, press/media-coverage, third-party-advisory)
- <https://github.com/DaveGamble/cJSON/blob/v1.7.19/cJSON.c#L3057-L3180> (patch, technical-description)
- <https://www.vulncheck.com/advisories/cjson-cjson-compare-exponential-complexity-denial-of-service> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-67216](https://www.cve.org/CVERecord?id=CVE-2026-67216), CVE Terms of Use, modified 2026-07-30
- NVD: [CVE-2026-67216](https://nvd.nist.gov/vuln/detail/CVE-2026-67216), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-67216 · Whole record: https://cve.day/CVE-2026-67216.json · Rebuilt by cve.day 2026-11-25T22:59:30.437Z
