CVE-2023-1370
Stack exhaustion in json-smart leads to denial of service when parsing malformed JSON
Reported by jfrog · Published March 13, 2023
json-smart is fixed in 2.4.9 (Maven Central)
[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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| net.minidev:json-smart | Maven Central | 2.4.9 |
| spark-3.5 | Chainguard | 3.5.9-r10 |
| sonarqube-10 | Wolfi | 25.1.0.102122-r0 |
| celeborn-0.5 | Wolfi | 0.5.4-r26 |
| hadoop-fips-3.5 | Chainguard | 3.5.0-r7 |
| druid | Chainguard | 37.0.0-r56, 37.0.0-r14 |
| celeborn-0.6 | Chainguard | 0.6.3-r7 |
| sonarqube-10 | Chainguard | 25.1.0.102122-r0 |
| elasticsearch-7 | Chainguard | 7.17.14-r2 |
| hadoop-fips-3.3.6 | Chainguard | 3.3.6-r21 |
| thingsboard | Wolfi | 3.7-r4 |
| stargate | Chainguard | 1.0.79-r2 |
7 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| json-smart | json-smart | 0 |
| json-smart | json-smart | 0 |
Timeline
- Mar 13, 2023 CVE Published
- Apr 22, 2023 EPSS Score (29 in total, the first dated here)
- Feb 8, 2024 PoC Published (7 in total, the first dated here)
- Feb 27, 2025 CVE Updated
- Mar 17, 2026 Security Advisory (41 in total, the first dated here)
- May 21, 2026 Coalition ESS Score
- Jul 2, 2026 Distribution Patch (38 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-1370
vulnetix vdb fixes CVE-2023-1370
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-1370/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart