CVE-2026-16554: cJSON library is vulnerable to an integer overflow in the print_string_ptr() function in cJSON.c on 32-bit pla
CVE-2026-16554 is a high-severity flaw (CVSS 7.8) affecting cjson. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 th
Why this priority
- High severity
A fixed release or distro patch exists.
Risk facts
| CVSS score | 7.8 (High) |
| Attack vector | Local |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.3% (top 79%) |
| CISA exploited list | No |
| Weakness | CWE-190 |
| Published | 2026-07-27 |
| Last modified | 2026-10-24 |
Last updated 2026-10-24 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Advisories and coverage
Official advisories
- CERT Polska: Vulnerability in DaveGamble cJSON library 2026-07-27
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-16554?
cjson: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2026-16554 being exploited?
CVE-2026-16554 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-16554 affect?
CVE-2026-16554 affects cjson. Severity is high (CVSS 7.8). 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,4
How urgent is CVE-2026-16554?
Priority 32/100. High severity
Related CVEs
- CVE-2026-67215 HIGH 7.5 UPGRADE cJSON through 1.7.19 is vulnerable to uncontrolled recursion leading to stack exhaustion when an untrusted RFC
- CVE-2026-67216 MEDIUM 5.9 UPGRADE cJSON through 1.7.19 contains an inefficient algorithmic complexity flaw in cJSON_Compare()
- CVE-2026-67217 MEDIUM 5.3 UPGRADE cJSON through 1.7.19 applies RFC 6902 JSON Patch operations non-atomically in apply_patch() in cJSON_Utils.c