Skip to main content
Mallory
← Back to News
open-source-dependency-vulnerabilityproof-of-concept-release

Integer Overflow in cJSON Can Trigger Heap Overflow and Possible RCE

Vulnerability Disclosure · 2 sources · Updated 4mo ago · First seen Jul 27, 2026

Integer Overflow in cJSON Can Trigger Heap Overflow and Possible RCE

CERT Polska disclosed CVE-2026-16554, an integer overflow vulnerability in the DaveGamble cJSON library that can lead to a heap buffer overflow on 32-bit platforms. The flaw affects confirmed version 1.7.19 and occurs in the print_string_ptr() function in cJSON.c, where the 32-bit size_t escape_characters counter can wrap while processing extremely large JSON strings containing roughly 858,993,460 or more control characters.

If an application uses cJSON_PrintBuffered() with a pre-allocated buffer, the integer wrap can cause the library to underestimate the required allocation before entering the write loop, creating conditions for memory corruption. CERT Polska said a crafted JSON string supplied to software using cJSON could enable remote code execution, information disclosure, or denial of service; the group coordinated disclosure but said vendor contact attempts were unsuccessful, and only version 1.7.19 has been confirmed vulnerable so far, though other versions may also be affected.

Why it matters

Impact assessment

CVE-2026-16554 affects software that embeds the DaveGamble cJSON library on 32-bit platforms, with confirmed exposure in cJSON 1.7.19 and possible exposure in other versions. The impact can be severe for internet-facing or untrusted-input parsing workflows because successful exploitation may cause remote code execution, information disclosure, or denial of service through heap corruption.

The exposure is likely broad at the supply-chain level because cJSON is a reusable library, but practical exploitation is constrained by specific conditions: 32-bit builds, very large attacker-controlled JSON strings, and use of cJSON_PrintBuffered() with a pre-allocated buffer. No in-the-wild exploitation was reported in the provided references.

Affected populations

  • Vendors and developers shipping applications that statically or dynamically include cJSON
  • Organizations running 32-bit applications or embedded systems that process untrusted JSON
  • Products that call cJSON_PrintBuffered() on attacker-influenced content

Severity and business risk

  • Potential outcomes: remote code execution, information disclosure, denial of service
  • Likely operational impact: application crashes, service instability, possible compromise of affected processes
  • Potential business impact: outage, incident response costs, reputational damage if exposed services are exploitable

Scope and exploitation status

  • Confirmed affected version: cJSON 1.7.19
  • Other versions may also be affected but were not confirmed in the references
  • No known exploitation in the wild stated in the source material
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

1 event · Jul 27, 2026
  1. Jul 27, 20264mo ago

    CERT Polska discloses CVE-2026-16554 in cJSON

    CERT Polska disclosed CVE-2026-16554, an integer overflow in the DaveGamble cJSON library affecting confirmed version 1.7.19 on 32-bit platforms. The flaw can lead to heap buffer overflow during cJSON_PrintBuffered() processing of crafted large strings, with possible remote code execution, information disclosure, or denial of service.

    Vulnerability in DaveGamble cJSON library - Malware News - Malware Analysis, News and Indicators
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Cjson

Organizations

1 linked
Davegamble
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.