Skip to content

CVE-2026-67215 cJSON JSON Patch copy/add Uncontrolled Recursion Stack Exhaustion

HighCVSS 8.7 EPSS 0.70%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
UbuntuDebianRed Hat

Description

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.

Upgrade path

11 packages: 1 fixed, 10 with no fix yet.

PackageAffectedFixed inStatus
azure linux apparmor(Azure Linux 3.0) All versions No fix listed No fix yet
azure linux libglvnd(Azure Linux 3.0) All versions No fix listed No fix yet
debian/cjson(Debian 12) = 1.7.15-1; = 1.7.15-1+deb12u1; = 1.7.15-1+deb12u2; = 1.7.15-1+deb12u3 +13 more No fix listed No fix yet
debian/cjson(Debian 13) = 1.7.18-3.1; = 1.7.18-3.1+deb13u1; = 1.7.18-4; = 1.7.19-1 +2 more No fix listed No fix yet
debian/cjson(Debian 14) = 1.7.18-3.1; = 1.7.18-4; = 1.7.19-1; = 1.7.19-2 +1 more No fix listed No fix yet
redhat/cjson(Red Hat satellite 6) All versions No fix listed No fix yet
ubuntu/cjson(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/cjson(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/cjson(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/cjson(Ubuntu 26.10) All versions No fix listed No fix yet
DaveGamble cJSON <= 1.7.19 after 1.7.19 Fixed

Affected products

ProductAffected versionsFixed in
DaveGamble cJSON <= 1.7.19 No fix listed
redhat/cjson(Red Hat:satellite:6) All versions No fix listed
debian/cjson(Debian:12) All versions No fix listed
debian/cjson(Debian:12) = 1.7.15-1 No fix listed
debian/cjson(Debian:12) = 1.7.15-1+deb12u1 No fix listed
debian/cjson(Debian:12) = 1.7.15-1+deb12u2 No fix listed
debian/cjson(Debian:12) = 1.7.15-1+deb12u3 No fix listed
debian/cjson(Debian:12) = 1.7.15-1+deb12u4 No fix listed
debian/cjson(Debian:12) = 1.7.16-1 No fix listed
debian/cjson(Debian:12) = 1.7.16-2 No fix listed
debian/cjson(Debian:12) = 1.7.17-1 No fix listed
debian/cjson(Debian:12) = 1.7.17-2 No fix listed
debian/cjson(Debian:12) = 1.7.18-1 No fix listed
debian/cjson(Debian:12) = 1.7.18-2 No fix listed
debian/cjson(Debian:12) = 1.7.18-3 No fix listed
debian/cjson(Debian:12) = 1.7.18-3.1 No fix listed
debian/cjson(Debian:12) = 1.7.18-4 No fix listed
debian/cjson(Debian:12) = 1.7.19-1 No fix listed
debian/cjson(Debian:12) = 1.7.19-2 No fix listed
debian/cjson(Debian:13) All versions No fix listed
debian/cjson(Debian:13) = 1.7.18-3.1 No fix listed
debian/cjson(Debian:13) = 1.7.18-3.1+deb13u1 No fix listed
debian/cjson(Debian:13) = 1.7.18-4 No fix listed
debian/cjson(Debian:13) = 1.7.19-1 No fix listed
debian/cjson(Debian:13) = 1.7.19-2 No fix listed
Show 11 more
ProductAffected versionsFixed in
debian/cjson(Debian:14) All versions No fix listed
debian/cjson(Debian:14) = 1.7.18-3.1 No fix listed
debian/cjson(Debian:14) = 1.7.18-4 No fix listed
debian/cjson(Debian:14) = 1.7.19-1 No fix listed
debian/cjson(Debian:14) = 1.7.19-2 No fix listed
ubuntu/cjson(Ubuntu:22.04) All versions No fix listed
ubuntu/cjson(Ubuntu:24.04) All versions No fix listed
ubuntu/cjson(Ubuntu:26.04) All versions No fix listed
ubuntu/cjson(Ubuntu:26.10) All versions No fix listed
azure linux libglvnd(Azure Linux:3.0) All versions No fix listed
azure linux apparmor(Azure Linux:3.0) All versions No fix listed

References