CVE-2026-16554
Integer Overflow Leading to Heap Buffer Overflow in cJSON
No exploitation reported by the sources we read.
- Published2026-07-27
- WeaknessCWE-190
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
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.
Timeline
dates in UTC- 2026-07-2709:16CVE publishedNVD
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 1.7 | = 1.7.19 | no fix published | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As CERT-PL, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- DaveGamble cJSONother versions: not affected
https://github.com/DaveGamble/cJSON
Affected- = 1.7.19no fix statedsemver
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2026-07-27
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- apparmorAzure Linux:3all versions · no fixed version listedand 1 other package
- cjsonUbuntu:Pro:24.04:LTSall versions · no fixed version listed
- cjsonUbuntu:Pro:22.04:LTSall versions · no fixed version listed
- cjsonUbuntu:Pro:20.04:LTSall versions · no fixed version listed
- cjsonUbuntu:26.10all versions · no fixed version listed
- cjsonUbuntu:26.04:LTSall versions · no fixed version listed
- cjsonRoot:Alpine:3.23all versions · fixed in 1.7.19-r10071and 1 other package
- cjsonRoot:Alpine:3.23all versions · fixed in 1.7.19-r10072and 1 other package
7 more package ranges on OSV.dev
Vendor advisories
- CVE-2026-16554 Red Hat Product Security
cJSON: cJSON: Remote code execution due to integer overflow via crafted JSON
Fix
No fix published by the sources we read yet. NVD record
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-08
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionnone2026-07-27
- CNACVSS 4.05.1known since 2026-10-24
- NVDCVSS 3.17.8read 2026-10-24
- CNAweakness (CWE)CWE-190known since 2026-10-24
- FIRST EPSSEPSS score0.4 %2026-11-08
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- AZL-94184same flawAzure Linux · MIT
- AZL-94244same flawAzure Linux · MIT
- EUVD-2026-49129same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-qv6q-8g2j-w47gsame flawGitHub Advisory Database · CC-BY-4.0
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CVSS 4.0 vector
- 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
- Published
- 2026-07-27
- Last Modified
- 2026-10-24
- NVD status
- Analyzed
- GitHub Advisory
- GHSA-qv6q-8g2j-w47g
Frequently asked questions
What is CVE-2026-16554?
Is CVE-2026-16554 actively exploited?
What is the CVSS score for CVE-2026-16554?
Running cJSON? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-qv6q-8g2j-w47g
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OpenCVE · OpenCVE terms of service · terms restrict redistribution
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0