Upstream information
Description
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.
Other Security Trackers
SUSE information
Overall state of this security issue: Resolved
This issue is currently rated as having moderate severity.
| CVSS detail | SUSE |
|---|---|
| Base Score | 5.3 |
| Vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L |
| Attack Vector | Local |
| Attack Complexity | Low |
| Privileges Required | None |
| User Interaction | Required |
| Scope | Unchanged |
| Confidentiality Impact | Low |
| Integrity Impact | Low |
| Availability Impact | Low |
| CVSSv3 Version | 3.1 |
| CVSS detail | CNA (cvd@cert.pl) |
|---|---|
| Base Score | 5.1 |
| Vector | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:L/SI:L/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| Attack Vector | Local |
| Attack Complexity | Low |
| Attack Requirements | None |
| Privileges Required | None |
| User Interaction | None |
| Vulnerable System Confidentiality Impact | None |
| Vulnerable System Integrity Impact | None |
| Vulnerable System Availability Impact | Low |
| Subsequent System Confidentiality Impact | Low |
| Subsequent System Integrity Impact | Low |
| Subsequent System Availability Impact | Low |
| CVSSv4 Version | 4.0 |
Status of this issue by product and package
Please note that this evaluation state might be work in progress, incomplete or outdated. Also information for service packs in the LTSS phase is only included for issues meeting the LTSS criteria. If in doubt, feel free to contact us for clarification. The updates are grouped by state of their lifecycle. SUSE product lifecycles are documented on the lifecycle page.
| Product(s) | Source package | State |
|---|---|---|
| Products under general support and receiving all security fixes. | ||
| SUSE Linux Enterprise Desktop 15 SP7 | cJSON | Not affected |
| SUSE Linux Enterprise Server 15 SP7 | cJSON | Not affected |
| SUSE Linux Enterprise Server 16.0 | cJSON | Not affected |
| SUSE Linux Enterprise Server 16.1 | cJSON | Not affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | cJSON | Not affected |
| SUSE Linux Enterprise Server for SAP applications 16.0 | cJSON | Not affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | cJSON | Not affected |
| SUSE Linux Enterprise Workstation Extension 15 SP7 | cJSON | Not affected |
| openSUSE Leap 16.0 | cJSON | Not affected |
SUSE Timeline for this CVE
CVE page created: Tue Jul 28 15:26:36 2026CVE page last modified: Tue Jul 28 17:26:53 2026