This update for cJSON fixes the following issues:
- Update to version 1.7.19
* Check for NULL in cJSON_DetachItemViaPointer.
* Check overlap before calling strcpy in cJSON_SetValuestring.
* Fix Max recursion depth for cJSON_Duplicate to prevent stack
exhaustion.
* Allocate memory for the temporary buffer when paring numbers.
This fixes CVE-2023-26819. (bsc#1241502)
* Fix the incorrect check in decode_array_index_from_pointer.
This fixes CVE-2025-57052. (bsc#1249112)
- Remove not longer needed patch for NULL to deallocated pointers.
Patch instructions:
To install this openSUSE security update use the suse recommended installation methods
like YaST online_update or "zypper patch".
Alternatively you can run the command listed for your product:
- openSUSE Leap 16.0
zypper in -t patch openSUSE-Leap-16.0-369=1
- openSUSE Leap 16.0:
cJSON-devel-1.7.19-160000.1.1
libcjson1-1.7.19-160000.1.1
* bsc#1241502
* bsc#1249112
References:
* https://www.suse.com/security/cve/CVE-2023-26819.html
* https://www.suse.com/security/cve/CVE-2025-57052.html
Get the latest Linux and open source security news straight to your inbox.