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

Published Jul 29, 2026
·
Updated

cJSON through 1.7.19 is vulnerable to uncontrolled recursion leading to stack exhaustion when an untrusted RFC 6902 JSON Patch is applied via cJSONUtilsApplyPatches() or cJSONUtilsApplyPatchesCaseSensitive(). A patch containing add and copy operations grafts duplicated subtrees to amplify document depth beyond the parser's nesting limit: cJSONDelete() recurses with no depth bound, and the cJSONDuplicate() guard CJSONCIRCULARLIMIT 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.

Affected Software

2 affected components
cJSON cJSON<=1.7.19
DaveGamble cJSON<=1.7.19

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade cJSON to a version that resolves this vulnerability.

    Patch cJSON JSON Patch copy/add Uncontrolled Recursion Stack Exhaustion
  2. Compensating control

    Do not apply untrusted RFC 6902 JSON Patch documents via cJSONUtils_ApplyPatches() or cJSONUtils_ApplyPatchesCaseSensitive(); ensure patch documents are trusted/validated before application to prevent stack exhaustion from uncontrolled recursion.

Event History

Jul 29, 2026
CVE Published
via MITRE·01:32 PM
Data Sourced
via MITRE·01:32 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-67215?

The severity of CVE-2026-67215 is high with a score of 7.5.

2

What does CVE-2026-67215 vulnerability affect?

CVE-2026-67215 affects cJSON versions up to 1.7.19 which is vulnerable to uncontrolled recursion.

3

How does CVE-2026-67215 exploit occur?

An exploit occurs when an untrusted RFC 6902 JSON Patch containing add and copy operations is applied, leading to stack exhaustion.

4

What is the impact of CVE-2026-67215?

The impact of CVE-2026-67215 is denial of service due to stack exhaustion.

5

How do I fix CVE-2026-67215?

To fix CVE-2026-67215, upgrade to a version of cJSON beyond 1.7.19 that addresses this vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203
CVE-2026-67215 - cJSON JSON Patch copy/add Uncontrolled Recursion Stack Exhaustion - SecAlerts