Out-of-bounds Read Affecting davegamble/cjson package, versions [,1.7.18)


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.01% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-DAVEGAMBLECJSON-10249190
  • published27 May 2025
  • disclosed23 May 2025
  • creditOliver Chang

Introduced: 23 May 2025

NewCVE-2023-53154  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade davegamble/cjson to version 1.7.18 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read via the parse_string function. An attacker can cause a denial of service by sending a malformed JSON input that lacks a trailing newline when cJSON_ParseWithLength is called.

PoC

{"1":1, #with no trailing newline

CVSS Base Scores

version 4.0
version 3.1