CVE-2026-67216
published high CVSS 4.0 · 8.2cJSON cJSON_Compare Exponential Complexity Denial of Service
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| DaveGamble | — | cJSON0 through 1.7.19 · Other versions: affected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.2 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.9 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| DaveGamble | cJSON | 0 through 1.7.19 (affected · semver)Default: affected | VulnCheck · cna |
Weaknesses
1- CWE-407 Inefficient Algorithmic Complexity
References
3- cJSON_Compare double-recursion object comparison (cJSON.c) https://github.com/DaveGamble/cJSON/blob/v1.7.19/cJSON.c#L3057-L3180
- Security vulnerabilities in the cJSON JSON parser (Joshua Rogers) https://joshua.hu/cjson-json-parser-cve-vulnerabilities
- VulnCheck Advisory: cJSON cJSON_Compare Exponential Complexity Denial of Service https://www.vulncheck.com/advisories/cjson-cjson-compare-exponential-complexity-denial-of-service
Provider assertions
2VulnCheck · cna
cJSON cJSON_Compare Exponential Complexity Denial of Service
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 27ae0144844082a70ed00a6330c97c3f72ffdd3b6a46828a8c7606598043d35c
- Ingested
- 23 Sep 2026, 09:26:54 UTC
- Source record
- Official CVE record