Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.3%top 79%

CVE-2026-16554: CWE-190 Integer overflow or wraparound in DaveGamble cJSON

0
Medium
Published: 07/27/2026 (07/27/2026, 08:40:17 UTC)
Source: CVE Database V5
Vendor/Project: DaveGamble
Product: cJSON

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.

CVSS v4.0

Score 5.1medium

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
Low
Subsq. Confidentiality
Low
Subsq. Integrity
Low
Subsq. Availability
Low
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

Affected software

GitHub Actionsmore threats →cve
cJSON
pkg:github/cJSON
Affected versions
=1.7.19

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/06/2026, 16:54:19 UTC

Technical Analysis

CVE-2026-16554 is an integer overflow vulnerability in the cJSON library's print_string_ptr() function on 32-bit platforms. The vulnerability arises because the escape_characters counter, a 32-bit size_t, can wrap around when processing strings containing approximately 858,993,460 or more control characters. This wraparound causes 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 can overflow the heap allocation. This heap buffer overflow can be triggered by an attacker supplying a crafted JSON string, potentially leading to remote code execution, information disclosure, or denial of service. The vulnerability has been confirmed in version 1.7.19, but other versions may also be affected. Attempts to contact the project creator were unsuccessful, and no patch or remediation guidance is currently available.

Potential Impact

Exploitation of this vulnerability can lead to heap buffer overflow on 32-bit platforms using cJSON version 1.7.19. This may result in remote code execution, information disclosure, or denial of service. The vulnerability requires an attacker to supply a specially crafted JSON string containing a very large number of control characters. No known exploits in the wild have been reported.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since attempts to contact the project creator were unsuccessful and no official fix is available, users should consider avoiding use of cJSON version 1.7.19 on 32-bit platforms or implement additional input validation to limit the size and content of JSON strings processed. Monitor vendor channels for any future patches or updates addressing this issue.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
CERT-PL
Date Reserved
2026-07-22T11:49:39.961Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a671c679c2644c7f8bc2e17

Added to database: 07/27/2026, 08:52:55 UTC

Last enriched: 08/06/2026, 16:54:19 UTC

Last updated: 09/09/2026, 10:52:07 UTC

Views: 88

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses