Vulnerability · Published Mar 13, 2023 · Assigned by JFROG

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

High 7.5

In plain English

A high-severity security flaw in json-smart from json-smart. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 66% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.1%top 33.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12json-smart2.2-2+deb12u1DEBIAN-CVE-2023-1370
Debian:13json-smart2.2-3DEBIAN-CVE-2023-1370
Debian:14json-smart2.2-3DEBIAN-CVE-2023-1370
Mavennet.minidev:json-smart2.4.9GHSA-493p-pfq6-5258
Ubuntu:22.04:LTSjson-smart2.2-2ubuntu0.22.04.1USN-6011-1
Ubuntu:22.04:LTSjson-smart2.2-2ubuntu0.22.04.1UBUNTU-CVE-2023-1370

Affected products (as reported)

VendorProductVersions
json-smart json-smart 0 – before 2.4.9

Weakness: CWE-674 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References