Json-smart: Deep Nesting Causing Stack Overflow
CVE-2023-1370 Published on March 22, 2023
Stack exhaustion in json-smart leads to denial of service when parsing malformed JSON
[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.
Vulnerability Analysis
CVE-2023-1370 is exploitable with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. An automatable proof of concept (POC) exploit exists. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity, and a high impact on availability.
Weakness Type
What is a Stack Exhaustion Vulnerability?
The product does not properly control the amount of recursion which takes place, consuming excessive resources, such as allocated memory or the program stack.
CVE-2023-1370 has been classified to as a Stack Exhaustion vulnerability or weakness.
Products Associated with CVE-2023-1370
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2023-1370 are published in these products:
Affected Versions
json-smart:- Before 2.4.9 is affected.
Vulnerable Packages
The following package name and versions may be associated with CVE-2023-1370
| Package Manager | Vulnerable Package | Versions | Fixed In |
|---|---|---|---|
| maven | com.intuit.karate:karate-core | = 1.3.1 | |
| maven | net.minidev:json-smart | < 2.4.9 | 2.4.9 |
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.