Skip to main content
VulnerabilityPublished Updated

CVE-2026-16554: cJSON library is vulnerable to an integer overflow in the print_string_ptr() function in cJSON.c on

Affects cjsonSource GCVE Database

0
Compare
Authoritative record:CVE-2026-16554· Medium 5.1

Not known to be exploited · CVSS 5.1 Medium.

Data as of 24 Nov 2026, 20:12 UTC

CVSS 4.0 base score
5.1Medium
How severe the flaw is on the 0–10 CVSS scale.
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 27 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10cjsonpkg:deb/ubuntu/cjson?arch=source&distro=stonkingOther threatsAffected
  • =1.7.19-2
Fixed in–
Ubuntu 26.04 LTScjsonpkg:deb/ubuntu/cjson?arch=source&distro=resoluteOther threatsAffected
  • 1.7.18-3.1 – 1.7.19-2
4 affected builds
Fixed in–
Ubuntu Pro 24.04 LTScjsonpkg:deb/ubuntu/cjson?arch=source&distro=esm-apps/nobleOther threatsAffected
  • 1.7.16-1 – 1.7.17-1ubuntu0.1~esm3
5 affected builds
Fixed in–
Ubuntu Pro 22.04 LTScjsonpkg:deb/ubuntu/cjson?arch=source&distro=esm-apps/jammyOther threatsAffected
  • 1.7.14-1 – 1.7.15-1ubuntu0.1~esm2
5 affected builds
Fixed in–
Ubuntu Pro 20.04 LTScjsonpkg:deb/ubuntu/cjson?arch=source&distro=esm-apps/focalOther threatsAffected
  • =1.7.10-1.1
  • =1.7.10-1.1ubuntu0.1~esm1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…