CVE-2026-16554: cJSON - Integer Overflow
- Cve: CVE-2026-16554
- Name: cJSON - Integer Overflow
- 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.
- Impact: Attackers can cause heap buffer overflow leading to remote code execution, information disclosure, or denial of service.
- Remediation: Update to the latest version of cJSON.
- Vulnerability type: integer_overflow
- Vulnerability impact: remote_code_execution, information_disclosure, denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00367
- Epss percentile: 0.31171
- Assignee: [email protected]
- Published at: 2026-07-27T09:16:37Z
- Age in days: 120
- Modified at: 2026-10-24T13:10:00Z
- References total: 4
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-16554
- Nvd status: analyzed
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-190 | Integer Overflow or Wraparound |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://cert.pl/en/posts/2026/07/CVE-2026-16554 | Third Party Advisory |
| http://www.openwall.com/lists/oss-security/2026/07/30/26 | Issue Tracking, Mailing List, Third Party Advisory |
| http://www.openwall.com/lists/oss-security/2026/07/31/4 | Mailing List, Third Party Advisory |
| https://github.com/DaveGamble/cJSON | Product |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| davegamble:cjson | = 1.7.19 | no | nvd | /v1/products/davegamble/cjson |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts