CVE-2026-67217cJSON JSON Patch Non-Atomic Application Destroys Data Before Validation
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.
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-67217 | |
| Ubuntu 26.04 | cjson | Under investigation | UBUNTU-CVE-2026-67217 | |
| Ubuntu 24.04 | cjson | Fix pending | UBUNTU-CVE-2026-67217 | |
| Ubuntu 22.04 | cjson | Fix pending | UBUNTU-CVE-2026-67217 | |
| Ubuntu 20.04 | cjson | Fix pending | UBUNTU-CVE-2026-67217 | |
| Debian 14 | cjson | Fix pending | DEBIAN-CVE-2026-67217 | |
| Debian 13 | cjson | Fix pending | DEBIAN-CVE-2026-67217 | |
| Debian 12 | cjson | Fix pending | DEBIAN-CVE-2026-67217 | |
| 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_Utils.c#L887-L948
- https://www.vulncheck.com/advisories/cjson-json-patch-non-atomic-application-destroys-data-before-validation
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.