Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. net.minidev/json-smart
  4. ›
  5. CVE-2023-1370

CVE-2023-1370: json-smart Uncontrolled Recursion vulnerability

March 23, 2023 (updated February 13, 2025)

Affected versions of net.minidev:json-smart are vulnerable to Denial of Service (DoS) due to a StackOverflowError when parsing a deeply nested JSON array or object.

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

References

  • github.com/advisories/GHSA-493p-pfq6-5258
  • github.com/netplex/json-smart-v2/commit/5b3205d051952d3100aa0db1535f6ba6226bd87a
  • github.com/netplex/json-smart-v2/commit/e2791ae506a57491bc856b439d706c81e45adcf8
  • github.com/netplex/json-smart-v2/issues/137
  • github.com/oswaldobapvicjr/jsonmerge
  • github.com/oswaldobapvicjr/jsonmerge/security/advisories/GHSA-493p-pfq6-5258
  • nvd.nist.gov/vuln/detail/CVE-2023-1370
  • research.jfrog.com/vulnerabilities/stack-exhaustion-in-json-smart-leads-to-denial-of-service-when-parsing-malformed-json-xray-427633
  • security.netapp.com/advisory/ntap-20240621-0006
  • security.snyk.io/vuln/SNYK-JAVA-NETMINIDEV-3369748
  • www.cve.org/CVERecord?id=CVE-2023-1370

Code Behaviors & Features

Detect and mitigate CVE-2023-1370 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.4.9

Fixed versions

  • 2.4.9

Solution

Upgrade to version 2.4.9 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-674: Uncontrolled Recursion

Source file

maven/net.minidev/json-smart/CVE-2023-1370.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:59 +0000.