CVE-2023-1370Stack 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.
What to do
Fixed builds are available from Debian, Maven, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | json-smart | Fixed | 2.2-2ubuntu0.22.04.1 | UBUNTU-CVE-2023-1370 |
| Ubuntu 20.04 | json-smart | Fixed | 2.2-2ubuntu0.20.04.1 | UBUNTU-CVE-2023-1370 |
| Ubuntu 18.04 | json-smart | Fixed | 2.2-2ubuntu0.18.04.1 | UBUNTU-CVE-2023-1370 |
| Debian 14 | json-smart | Fixed | 2.2-3 | DEBIAN-CVE-2023-1370 |
| Debian 13 | json-smart | Fixed | 2.2-3 | DEBIAN-CVE-2023-1370 |
| Debian 12 | json-smart | Fixed | 2.2-2+deb12u1 | DEBIAN-CVE-2023-1370 |
| Maven library | net.minidev:json-smart | Fixed | 2.4.9 | GHSA-493p-pfq6-5258 |
What the vendor says
As published in the CVE record by JFROG, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- json-smart: affected: before 2.4.9; fixed in
2.4.9
References
- https://research.jfrog.com/vulnerabilities/stack-exhaustion-in-json-smart-leads-to-denial-of-service-when-parsing-malformed-json-xray-427633/
- https://security.netapp.com/advisory/ntap-20240621-0006/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.