cve.bz

CVE-2026-67217 davegamble cjson: Incorrect Behavior Order

6.9 mediumExploit referenceEPSS 0.4%Fix available

Medium (6.9) in davegamble cjson. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

6.9 medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 38th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2026-07-29. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-696 Incorrect Behavior Order
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-67217 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-67217?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-67217?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-67217 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
DaveGamble cJSONthrough 1.7.19

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14cjsonno fix listedDEBIAN-CVE-2026-67217
Ubuntu26.04:LTS, 26.10, Pro:20.04:LTS and 2 morecjsonno fix listedUBUNTU-CVE-2026-67217

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This flaw affects cJSON's optional JSON Patch (RFC 6902) support, found in the cJSON Utilities module. If a patch document contains a malformed replace operation (missing its value) or a move operation with an unresolvable destination, the library removes the target member before finishing validation of the patch. The library reports the patch as failed, but the document has already been changed. Only software that builds the cJSON Utilities module and passes it externally supplied patch documents is affected. No fixed release of cJSON is currently available.

Red Hat's mitigation

No mitigation is available from the upstream cJSON project at this time. Applications that apply untrusted JSON Patch documents with cJSONUtils_ApplyPatches() or cJSONUtils_ApplyPatchesCaseSensitive() should keep a copy of the target document before applying a patch, and discard the copy and restore from the original whenever the patch operation reports failure, so that any partial modification is reverted.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8rpm-ostreeNot affected
Red Hat Hardened ImageschunkahNot affected
Red Hat OpenShift Container Platform 4rpm-ostreeNot affected
Red Hat Satellite 6cjsonNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-67217.

Attack patterns (CAPEC)

  • CAPEC-463 Padding Oracle Crypto Attack Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON