Davegamble Cjson
Don't miss out!
Thousands of developers use stack.watch to stay informed.Get an email whenever new security vulnerabilities are reported in Davegamble Cjson.
By the Year
In 2026 there have been 4 vulnerabilities in Davegamble Cjson with an average score of 6.2 out of ten. Cjson did not have any published security vulnerabilities last year. That is, 4 more vulnerabilities have already been reported in 2026 as compared to last year.
| Year | Vulnerabilities | Average Score |
|---|---|---|
| 2026 | 4 | 6.23 |
| 2025 | 0 | 0.00 |
| 2024 | 0 | 0.00 |
| 2023 | 2 | 7.50 |
| 2022 | 0 | 0.00 |
| 2021 | 0 | 0.00 |
| 2020 | 0 | 0.00 |
| 2019 | 4 | 9.23 |
| 2018 | 3 | 8.70 |
It may take a day or so for new Cjson vulnerabilities to show up in the stats or in the list of recent security vulnerabilities. Additionally vulnerabilities may be tagged under a different product or component name.
Recent Davegamble Cjson Security Vulnerabilities
cJSON <1.7.20: cJSON_Compare exp. complexity DoS
CVE-2026-67216
5.9 - Medium
- July 29, 2026
cJSON through 1.7.19 contains an inefficient algorithmic complexity flaw in cJSON_Compare(). When comparing objects, the function recurses into each shared subtree twice, once in each direction, with no depth guard, making the running time exponential in nesting depth. A small, deeply nested document of a few hundred bytes (depth around 40) compared for equality consumes hours of CPU, and the cost roughly doubles with each additional level of nesting. An application that calls cJSON_Compare() on attacker-influenced JSON that is structurally equal to a reference document is exposed to a denial-of-service condition.
Inefficient Algorithmic Complexity
cJSON <=1.7.19: Non-Atomic JSON Patch deletes members on failure
CVE-2026-67217
5.3 - Medium
- July 29, 2026
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.
Incorrect Behavior Order
cJSON <=1.7.19 Uncontrolled Recursion via JSON Patch
CVE-2026-67215
7.5 - High
- July 29, 2026
cJSON through 1.7.19 is vulnerable to uncontrolled recursion leading to stack exhaustion when an untrusted RFC 6902 JSON Patch is applied via cJSONUtils_ApplyPatches() or cJSONUtils_ApplyPatchesCaseSensitive(). A patch containing add and copy operations grafts duplicated subtrees to amplify document depth beyond the parser's nesting limit: cJSON_Delete() recurses with no depth bound, and the cJSON_Duplicate() guard CJSON_CIRCULAR_LIMIT 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.
Stack Exhaustion
cJSON 1.7.19 Integer Overflow in print_string_ptr() Heap Overflow
CVE-2026-16554
- July 27, 2026
cJSON library is vulnerable to an integer overflow in the print_string_ptr() function in cJSON.c on 32-bit platforms. The escape_characters counter, a 32-bit size_t, can wrap around when processing strings containing approximately 858,993,460 or more control characters, causing the output buffer to be allocated based on an underestimated length. When cJSON_PrintBuffered() is used with a pre-allocated buffer, the subsequent write loop overflows the heap allocation. An attacker supplying a crafted JSON string to an application using cJSON on a 32-bit platform can cause a heap buffer overflow, potentially leading to remote code execution, information disclosure, or denial of service. Because project creator contact attempts were unsuccessful, the vulnerability has only been confirmed in version 1.7.19 but may also affect other versions.
Integer Overflow or Wraparound
Segmentation Violation in cJSON 1.7.16 via cJSON_SetValuestring
CVE-2023-50472
7.5 - High
- December 14, 2023
cJSON v1.7.16 was discovered to contain a segmentation violation via the function cJSON_SetValuestring at cJSON.c.
NULL Pointer Dereference
cJSON v1.7.16 Segfault: cJSON_InsertItemInArray
CVE-2023-50471
- December 14, 2023
cJSON v1.7.16 was discovered to contain a segmentation violation via the function cJSON_InsertItemInArray at cJSON.c.
DaveGamble/cJSON cJSON 1.7.8 is affected by: Improper Check for Unusual or Exceptional Conditions
CVE-2019-1010239
7.5 - High
- July 19, 2019
DaveGamble/cJSON cJSON 1.7.8 is affected by: Improper Check for Unusual or Exceptional Conditions. The impact is: Null dereference, so attack can cause denial of service. The component is: cJSON_GetObjectItemCaseSensitive() function. The attack vector is: crafted json file. The fixed version is: 1.7.9 and later.
Improper Check for Unusual or Exceptional Conditions
cJSON before 1.7.11
CVE-2019-11835
9.8 - Critical
- May 09, 2019
cJSON before 1.7.11 allows out-of-bounds access, related to multiline comments.
Out-of-bounds Read
cJSON before 1.7.11
CVE-2019-11834
9.8 - Critical
- May 09, 2019
cJSON before 1.7.11 allows out-of-bounds access, related to \x00 in a string literal.
Out-of-bounds Read
parse_string in cJSON.c in cJSON before 2016-10-02 has a buffer over-read, as demonstrated by a string
CVE-2016-10749
9.8 - Critical
- April 29, 2019
parse_string in cJSON.c in cJSON before 2016-10-02 has a buffer over-read, as demonstrated by a string that begins with a " character and ends with a \ character.
Out-of-bounds Read
Dave Gamble cJSON version 1.7.3 and earlier contains a CWE-416: Use After Free vulnerability in cJSON library
CVE-2018-1000217
9.8 - Critical
- August 20, 2018
Dave Gamble cJSON version 1.7.3 and earlier contains a CWE-416: Use After Free vulnerability in cJSON library that can result in Possible crash, corruption of data or even RCE. This attack appear to be exploitable via Depends on how application uses cJSON library. If application provides network interface then can be exploited over a network, otherwise just local.. This vulnerability appears to have been fixed in 1.7.4.
Dangling pointer
Dave Gamble cJSON version 1.7.2 and earlier contains a CWE-415: Double Free vulnerability in cJSON library
CVE-2018-1000216
8.8 - High
- August 20, 2018
Dave Gamble cJSON version 1.7.2 and earlier contains a CWE-415: Double Free vulnerability in cJSON library that can result in Possible crash or RCE. This attack appear to be exploitable via Attacker must be able to force victim to print JSON data, depending on how cJSON library is used this could be either local or over a network. This vulnerability appears to have been fixed in 1.7.3.
Double-free
Dave Gamble cJSON version 1.7.6 and earlier contains a CWE-772 vulnerability in cJSON library that can result in Denial of Service (DoS)
CVE-2018-1000215
7.5 - High
- August 20, 2018
Dave Gamble cJSON version 1.7.6 and earlier contains a CWE-772 vulnerability in cJSON library that can result in Denial of Service (DoS). This attack appear to be exploitable via If the attacker can force the data to be printed and the system is in low memory it can force a leak of memory. This vulnerability appears to have been fixed in 1.7.7.
Missing Release of Resource after Effective Lifetime
Stay on top of Security Vulnerabilities
Want an email whenever new vulnerabilities are published for Davegamble Cjson or by Davegamble? Click the Watch button to subscribe.