CVE-2023-1370: Json smart Json-smart Uncontrolled Recursion Vulnerability Vulnerability
HIGHCVE-2023-1370 is a HIGH (CVSS 7.5) json-smart uncontrolled recursion vulnerability vulnerability (CWE-674: Uncontrolled Recursion) affecting Json smart libraries in the Maven ecosystem. The issue involves json-smart uncontrolled recursion vulnerability. Remediation is available by upgrading affected packages to version 2.4.9.
CVE-2023-1370 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2023-1370
To remediate this vulnerability, upgrade all affected Json smart dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>net.minidev</groupId>
<artifactId>json-smart</artifactId>
<version>2.4.9</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=net.minidev
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2023-1370, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=net.minidev
Analyze the terminal output to locate any version of Json smart in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.4.9), your application is affected.
Note: The mvn dependency:tree -Dincludes=net.minidev command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-674: Uncontrolled Recursion, where the product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack. In Json smart, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-1370 Affected Json smart Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
net.minidev:json-smart
|
Maven |
< 2.4.9
|
2.4.9
|
References
Frequently Asked Questions
What is CVE-2023-1370?
Which Json smart versions are affected?
What version fixes CVE-2023-1370?
Is json-smart affected?
What is the CVSS score of CVE-2023-1370?
What CWE is associated with CVE-2023-1370?
How can I check Maven dependencies for CVE-2023-1370?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-493p-pfq6-5258",
"modified" : "2026-08-04T22:06:15Z",
"published" : "2023-03-23T20:32:03Z",
"aliases" : [ "CVE-2023-1370" ],
"summary" : "json-smart Uncontrolled Recursion vulnerability",
"details" : "### Impact\nAffected versions of [net.minidev:json-smart](https://github.com/netplex/json-smart-v1) are vulnerable to Denial of Service (DoS) due to a StackOverflowError when parsing a deeply nested JSON array or object.\n\nWhen reaching a ‘[‘ or ‘{‘ character in the JSON input, the code parses an array or an object respectively. It was discovered that the 3PP 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 stack exhaustion (stack overflow) and crash the software.\n\n### Patches\nThis vulnerability was fixed in json-smart version 2.4.9, but the maintainer recommends upgrading to 2.4.10, due to a remaining bug.\n\n### Workarounds\nN/A\n\n### References\n- https://www.cve.org/CVERecord?id=CVE-2023-1370\n- https://nvd.nist.gov/vuln/detail/CVE-2023-1370\n- https://security.snyk.io/vuln/SNYK-JAVA-NETMINIDEV-3369748",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "net.minidev:json-smart"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.4.9"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-1370"
}, {
"type" : "WEB",
"url" : "https://github.com/netplex/json-smart-v2/issues/137"
}, {
"type" : "WEB",
"url" : "https://github.com/netplex/json-smart-v2/commit/5b3205d051952d3100aa0db1535f6ba6226bd87a"
}, {
"type" : "WEB",
"url" : "https://github.com/netplex/json-smart-v2/commit/e2791ae506a57491bc856b439d706c81e45adcf8"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/oswaldobapvicjr/jsonmerge"
}, {
"type" : "WEB",
"url" : "https://research.jfrog.com/vulnerabilities/stack-exhaustion-in-json-smart-leads-to-denial-of-service-when-parsing-malformed-json-xray-427633"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20240621-0006"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-JAVA-NETMINIDEV-3369748"
}, {
"type" : "WEB",
"url" : "https://www.cve.org/CVERecord?id=CVE-2023-1370"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-674" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-03-23T20:32:03Z",
"nvd_published_at" : "2023-03-22T06:15:00Z"
}
}