High

json-smart Uncontrolled Recursion vulnerability

  • Disclosed: 23.03.2023
  • Updated: 11.10.2026 13:19

Impact

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.

Patches

This vulnerability was fixed in json-smart version 2.4.9, but the maintainer recommends upgrading to 2.4.10, due to a remaining bug.

Workarounds

N/A

References

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) net.minidev:json-smart < 2.4.9 2.4.9

References

CVSS score 7.5/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness (CWE)
CWE-674
Platform
Java / Kotlin (Maven)
Package
net.minidev:json-smart
Disclosed
23.03.2023
Updated
11.10.2026 13:19

Sources and licenses

OSV / GitHub Advisory Database - GHSA-493p-pfq6-5258 - CC BY 4.0

Vulnerability history: net.minidev:json-smart

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
4
First → latest
06.2021 02.2025
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 3
  • Medium 1

Disclosures per year

  1. 2021: 1
  2. 2022: 1
  3. 2023: 1
  4. 2024: 0
  5. 2025: 1
  6. 2026: 0
  1. High · 7.5 CVE-2024-57699 >= 2.5.0, < 2.5.2 2.5.2
  2. json-smart Uncontrolled Recursion vulnerability this entry
    High · 7.5 CVE-2023-1370 < 2.4.9 2.4.9
  3. High · 7.5 CVE-2021-31684 >= 1.3.0, < 1.3.3, >= 2.4.0, < 2.4.4 1.3.3, 2.4.4
  4. Medium · 5.9 CVE-2021-27568 < 1.3.2, >= 2.4.0, < 2.4.1, >= 2.0.0, < 2.3.1 1.3.2, 2.4.1, 2.3.1

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.