CVEfocus › CVE database › CVE-2026-67217

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

CVSS 5.3 MediumEPSS 0.4% (higher than 29% of CVEs)Published 2026-07-29Updated 2026-07-29Assigner: VulnCheck

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.

CWE-696

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

7Fix pending
1Under investigation
2Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10cjsonFix pendingUBUNTU-CVE-2026-67217
Ubuntu 26.04cjsonUnder investigationUBUNTU-CVE-2026-67217
Ubuntu 24.04cjsonFix pendingUBUNTU-CVE-2026-67217
Ubuntu 22.04cjsonFix pendingUBUNTU-CVE-2026-67217
Ubuntu 20.04cjsonFix pendingUBUNTU-CVE-2026-67217
Debian 14cjsonFix pendingDEBIAN-CVE-2026-67217
Debian 13cjsonFix pendingDEBIAN-CVE-2026-67217
Debian 12cjsonFix pendingDEBIAN-CVE-2026-67217
Red Hat Enterprise Linux 8rpm-ostreeNot affected
Red Hat Enterprise Linux 8rpm-ostree-libsNot 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.

References

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.