CVE-2023-1370

Stack exhaustion in json-smart leads to denial of service when parsing malformed JSON

State
Published
Severity
7.5 High
Published
Mar 13, 2023
Updated
Feb 27, 2025
Reserved
Mar 13, 2023

Read the record on cve.org

Description

[Json-smart](https://netplex.github.io/json-smart/) is a performance focused, JSON processor lib.

When reaching a ‘[‘ or ‘{‘ character in the JSON input, the code parses an array or an object respectively.

It was discovered that the code does not have any limit to the nesting of such arrays or objects. Since the parsing of nested arrays and objects is done recursively, nesting too many of them can cause a stack exhaustion (stack overflow) and crash the software.

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HJFROG

Weaknesses

Affected Products

ProductVersions
json-smartjson-smart
  • before 2.4.9Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.