CVEfocus › CVE database › CVE-2023-1370

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

CVSS 7.5 HighEPSS 1.2% (higher than 69% of CVEs)Published 2023-03-13Updated 2025-02-27Assigner: JFROG

[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.

CWE-674

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

7Fixed

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04json-smartFixed2.2-2ubuntu0.22.04.1UBUNTU-CVE-2023-1370
Ubuntu 20.04json-smartFixed2.2-2ubuntu0.20.04.1UBUNTU-CVE-2023-1370
Ubuntu 18.04json-smartFixed2.2-2ubuntu0.18.04.1UBUNTU-CVE-2023-1370
Debian 14json-smartFixed2.2-3DEBIAN-CVE-2023-1370
Debian 13json-smartFixed2.2-3DEBIAN-CVE-2023-1370
Debian 12json-smartFixed2.2-2+deb12u1DEBIAN-CVE-2023-1370
Maven librarynet.minidev:json-smartFixed2.4.9GHSA-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.

References

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.