CVE-2026-16554: Integer Overflow in cJSON print_string_ptr() on 32-bit Platforms
- Vendor
- Davegamble
CVE-2026-16554 is an integer overflow in the cJSON library's print_string_ptr() function on platforms with 32-bit size_t. Processing a string containing approximately 858,993,460 or more control characters can wrap the escape_characters counter, causing the output-buffer size to be underestimated. When cJSON_PrintBuffered() is used with a pre-allocated buffer, the subsequent write loop can overflow the heap allocation. The vulnerability is confirmed in cJSON 1.7.19; other versions may also be affected but have not been confirmed.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation causes heap memory corruption and can potentially lead to remote code execution, information disclosure, or denial of service in the application using cJSON. The specific outcome depends on the application's exposure, memory layout, and runtime protections.
Mitigation
If you can’t patch tonight, do this now.
Prevent untrusted strings from reaching the affected serialization path on 32-bit deployments, particularly cJSON_PrintBuffered() with a pre-allocated buffer. Enforce conservative input and string-length limits before serialization to prevent extremely large strings with enough control characters to trigger counter wraparound.
Remediation
Patch, then assume compromise.
Apply a project or vendor fix addressing the integer overflow when available, and update affected bundled copies of cJSON. No fixed version is identified. Version 1.7.19 is confirmed affected, and other versions should not be assumed safe without verification.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-16554 exploited in the wild?
- As of Oct 25, 2026, Mallory has no reports of CVE-2026-16554 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-16554?
- As of Oct 25, 2026, Mallory has found no public exploit for CVE-2026-16554.
- Is there a patch for CVE-2026-16554?
- Apply a project or vendor fix addressing the integer overflow when available, and update affected bundled copies of cJSON. No fixed version is identified.
- What products are affected by CVE-2026-16554?
- Davegamble Cjson.
- How severe is CVE-2026-16554?
- CVE-2026-16554 has a CVSS v4 score of 5.1 (Medium) and an EPSS score of 0.37% (23rd percentile) as of Oct 25, 2026.
Recent activity
6 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.