CVE-2026-16554
CVE-2026-16554 · Integer Overflow Leading to Heap Buffer Overflow in cJSON
CVSS 5.1 · Medium · EPSS 0.4%
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- cjsonNo fix published
- cjson Debian 12No fix published
- cjson Debian 13No fix published
- cjson Debian 14No fix published
- and 5 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="cjson"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Stack: system
Affected products and versions
cjson
- Versions
- 1.7.19: Affected (semver)
No fix published
cjson Debian 12
- Versions
- 1.7.15-1
- 1.7.15-1+deb12u1
- 1.7.15-1+deb12u2
- 1.7.15-1+deb12u3
- 1.7.15-1+deb12u4
- 1.7.16-1
All versions (16)
- 1.7.16-2
- 1.7.17-1
- 1.7.17-2
- 1.7.18-1
- 1.7.18-2
- 1.7.18-3
- 1.7.18-3.1
- 1.7.18-4
- 1.7.19-1
- 1.7.19-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
cjson Debian 13
- Versions
- 1.7.18-3.1
- 1.7.18-3.1+deb13u1
- 1.7.18-4
- 1.7.19-1
- 1.7.19-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
cjson Debian 14
- Versions
- 1.7.18-3.1
- 1.7.18-4
- 1.7.19-1
- 1.7.19-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
cjson Ubuntu Pro 20.04 LTS
- Versions
- 1.7.10-1.1
- 1.7.10-1.1ubuntu0.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
cjson Ubuntu Pro 22.04 LTS
- Versions
- 1.7.14-1
- 1.7.15-1
- 1.7.15-1ubuntu0.1~esm2
- 1.7.15-1ubuntu0.1
- 1.7.15-1ubuntu0.1+esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
cjson Ubuntu Pro 24.04 LTS
- Versions
- 1.7.16-1
- 1.7.16-2
- 1.7.17-1
- 1.7.17-1ubuntu0.1~esm2
- 1.7.17-1ubuntu0.1~esm3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
cjson Ubuntu 26.10
- Versions
- 1.7.19-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
cjson Ubuntu 26.04 LTS
- Versions
- 1.7.18-3.1
- 1.7.18-4
- 1.7.19-1
- 1.7.19-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published