CVE-2026-16554 json
Integer Overflow Leading to Heap Buffer Overflow in cJSON
published 3mo ago modified 16d ago also EUVD-2026-49129
- cvss
- 7.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 30%
- public exploits
- 0
- none known
Summary
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.
Is CVE-2026-16554 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-16554 updated cvss 6.8
cJSON: cJSON: Remote code execution due to integer overflow via crafted JSON
-
Red Hat Enterprise Linux 8 rpm-ostree-libs, rpm-ostree 2022.10.117.g52714b51-3.el8_9not affected: vulnerable code not present
-
Red Hat Hardened Images chunkah 0.6.0-3.hum1not affected: component not present
-
Red Hat OpenShift Container Platform 4 rpm-ostree, rpm-ostree-libs, rpm-ostree 2022.10.117.g52714b51-3.el8_9 Red Hat Satellite 6 cjson 1.7.18-2.el8sat, cjson 1.7.18-2.el9satnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 3mo ago
Exploit prediction
0.37% chance of exploitation in the next 30 days, higher than 30% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 5.1 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:L/SI:L/SA:L |
| CNA | 4.0 | 5.1 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:L/SI:L/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- DaveGamble cJSON
Classification
- Weakness
-
- CWE-190 Integer Overflow or Wraparound
References
-
cert.pl
/en/posts/2026/07/CVE-2026-16554
third-party-advisory
-
github.com
/DaveGamble/cJSON
product
-
openwall.com
/lists/oss-security/2026/07/30/26
issue-tracking, mailing-list, third-party-advisory
-
openwall.com
/lists/oss-security/2026/07/31/4
mailing-list, third-party-advisory
Sources
- CVE List CVE-2026-16554
- NVD CVE-2026-16554
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.