7.8

CVE-2026-16554: Integer Overflow Leading to Heap Buffer Overflow in cJSON

Analyzed
AliasesUBUNTU-CVE-2026-16554DEBIAN-CVE-2026-16554
Published 27-07-2026Last modified 31-07-2026

Vulnerability summary

CVE-2026-16554 is a high (CVSS 7.8) Integer Overflow or Wraparound vulnerability in davegamble cjson. EPSS estimates a 0.29% chance of exploitation in the next 30 days, higher than 23.3% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.1, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (NVD)
EPSS score
0.29%
0%100%
Low · -0.08 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 27-07-2026
    PublishedVulnerability first disclosed.
  2. 31-07-2026
    Last modifiedVulnerability information updated.

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 metrics

6 scores · 4 sources · 2 versions

EPSS trend

Probability

0.29%

Chance of exploitation in the next 30 days

Percentile

23%

Versus all other CVEs

30-day change

Decrease -0.08 pp

From 0.37% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Davegamble1 product
Debian1 product
  • cjsonAll versions (No fix recorded) | < 1.7.19-3
Ubuntu1 product
  • cjsonAll versions (No fix recorded)

3 vendors · 3 products

References

8 links