CVE-2026-16554: Integer Overflow Leading to Heap Buffer Overflow in cJSON

Published Jul 27, 2026
·
Updated

cJSON library is vulnerable to an integer overflow in the printstringptr() function in cJSON.c on 32-bit platforms. The escapecharacters counter, a 32-bit sizet, 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 cJSONPrintBuffered() 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.

Affected Software

2 affected components
cJSON cJSON=1.7.19
cJSON=

Event History

Jul 27, 2026
CVE Published
via MITRE·08:40 AM
Data Sourced
via MITRE·08:40 AM
DescriptionWeakness
Data Sourced
via NVD·09:16 AM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-16554?

CVE-2026-16554 has a medium severity rating of 5.1.

2

How do I fix CVE-2026-16554?

To fix CVE-2026-16554, update the cJSON library to the latest version that addresses this integer overflow vulnerability.

3

What is the risk associated with CVE-2026-16554?

The risk associated with CVE-2026-16554 is rated at 43, indicating potential severe impacts on affected systems.

4

What type of vulnerability is CVE-2026-16554?

CVE-2026-16554 is classified as an integer overflow vulnerability that leads to a heap buffer overflow in the cJSON library.

5

On which platforms does CVE-2026-16554 affect the cJSON library?

CVE-2026-16554 specifically affects the cJSON library on 32-bit platforms.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203