CVE-2026-67215cJSON JSON Patch copy/add Uncontrolled Recursion Stack Exhaustion
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.
What to do
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | cjson | Fix pending | UBUNTU-CVE-2026-67215 | |
| Ubuntu 26.04 | cjson | Under investigation | UBUNTU-CVE-2026-67215 | |
| Ubuntu 24.04 | cjson | Fix pending | UBUNTU-CVE-2026-67215 | |
| Ubuntu 22.04 | cjson | Fix pending | UBUNTU-CVE-2026-67215 | |
| Ubuntu 20.04 | cjson | Fix pending | UBUNTU-CVE-2026-67215 | |
| Debian 14 | cjson | Fix pending | DEBIAN-CVE-2026-67215 | |
| Debian 13 | cjson | Fix pending | DEBIAN-CVE-2026-67215 | |
| Debian 12 | cjson | Fix pending | DEBIAN-CVE-2026-67215 | |
| Red Hat Enterprise Linux 8 | rpm-ostree | Not affected | ||
| Red Hat Enterprise Linux 8 | rpm-ostree-libs | Not affected |
What the vendor says
As published in the CVE record by VulnCheck, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- DaveGamble cJSON: affected: up to 1.7.19
References
- https://joshua.hu/cjson-json-parser-cve-vulnerabilities
- https://github.com/DaveGamble/cJSON/blob/v1.7.19/cJSON.c#L253-L261
- https://github.com/DaveGamble/cJSON/blob/v1.7.19/cJSON_Utils.c#L906-L940
- https://www.vulncheck.com/advisories/cjson-json-patch-copy-add-uncontrolled-recursion-stack-exhaustion
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.