Skip to content
OpenAdvisories

Package · Debian

cjson

16 known vulnerabilities.

3 results · Clear filters · Feed

  • Medium 5.3

    cJSON 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 i…

  • Medium 5.9

    cJSON cJSON_Compare Exponential Complexity Denial of Service

    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 nest…

  • Medium 5.1

    Integer Overflow Leading to Heap Buffer Overflow in cJSON

    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 …