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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.1, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-27 · Modified: 2026-07-31
- Aliases: UBUNTU-CVE-2026-16554, DEBIAN-CVE-2026-16554
- Record: https://cvemate.com/vulnerability/CVE-2026-16554 · JSON: https://cvemate.com/vulnerability/CVE-2026-16554/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.291%, percentile 23.313%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- davegamble cjson: 1.7.19
- debian cjson (Debian): All versions (No fix recorded) \| \< 1.7.19-3
- ubuntu cjson (Ubuntu): All versions (No fix recorded)

## References

- <https://cert.pl/en/posts/2026/07/CVE-2026-16554>
- <https://github.com/DaveGamble/cJSON>
- <http://www.openwall.com/lists/oss-security/2026/07/30/26>
- <http://www.openwall.com/lists/oss-security/2026/07/31/4>
- <https://ubuntu.com/security/CVE-2026-16554>
- <https://www.cve.org/CVERecord?id=CVE-2026-16554>
- <https://security-tracker.debian.org/tracker/CVE-2026-16554>
- <https://github.com/DaveGamble/cJSON/pull/1115>

---

Data as of 2026-12-05T04:36:25.498Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
