Skip to content

CVE-2026-67217 cJSON JSON Patch Non-Atomic Application Destroys Data Before Validation

MediumCVSS 6.9 EPSS 0.43%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial
Technology
UbuntuDebianRed Hat

Description

cJSON through 1.7.19 applies RFC 6902 JSON Patch operations non-atomically in apply_patch() in cJSON_Utils.c. For a replace operation that is missing its value member, or a move operation whose destination path cannot be resolved, the existing target member is detached and deleted before the operation is fully validated, so the target document is mutated while cJSONUtils_ApplyPatches() or cJSONUtils_ApplyPatchesCaseSensitive() returns a failure status. An attacker who can supply the patch document can destroy addressable members of the target document even though the API reports that the patch failed, defeating the all-or-nothing behavior callers rely on to reject bad patches.

Upgrade path

8 packages: 1 fixed, 7 with no fix yet.

PackageAffectedFixed inStatus
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
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
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
debian/cjson(Debian:14) All versions No fix listed
Show 8 more
ProductAffected versionsFixed in
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

References