CVE-2024-57699: Json smart Netplex Json-smart Uncontrolled Recursion Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-pq2g-wx69-c263
CVSS 7.5
CWE-674
Published
Advisory Summary

CVE-2024-57699 is a HIGH (CVSS 7.5) netplex json-smart uncontrolled recursion vulnerability vulnerability (CWE-674: Uncontrolled Recursion) affecting Json smart libraries in the Maven ecosystem. The issue involves netplex json-smart uncontrolled recursion vulnerability. Remediation is available by upgrading affected packages to version 2.5.2.

CVE-2024-57699 at a Glance

CVE Identifier CVE-2024-57699
GHSA Identifier GHSA-pq2g-wx69-c263
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-674: Uncontrolled Recursion
Affected Product Json smart
Package Ecosystem Maven
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2024-57699

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.

net.minidev:json-smart fixed: 2.5.2
<dependency>
    <groupId>net.minidev</groupId>
    <artifactId>json-smart</artifactId>
    <version>2.5.2</version>
</dependency>
Verify Direct and Transitive Dependencies

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-2024-57699, 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.5.2), 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

A security issue was found in Netplex Json-smart 2.5.0 through 2.5.1. When loading a specially crafted JSON input, containing a large number of ’{’, a stack exhaustion can be trigger, which could allow an attacker to cause a Denial of Service (DoS). This issue exists because of an incomplete fix for CVE-2023-1370. The fixed version only addresses the default modes provided by [JSONParser](https://github.com/netplex/json-smart-v2/blob/master/json-smart/src/main/java/net/minidev/json/parser/JSONParser.java#L118), such as `MODE_RFC4627`. If you create the JSONParser manually or with custom options, make sure to set the `LIMIT_JSON_DEPTH` option.

CVE-2024-57699 Affected Json smart Versions

1 component(s)
Fixed Versions:
2.5.2
Product / Package Ecosystem Affected Versions Fixed Version
net.minidev:json-smart
Maven
≥ 2.5.0
< 2.5.2
2.5.2

References

Frequently Asked Questions

What is CVE-2024-57699?
CVE-2024-57699 is a security vulnerability in Json smart involving Netplex Json-smart Uncontrolled Recursion vulnerability under CWE-674: Uncontrolled Recursion.
Which Json smart versions are affected?
Affected versions include releases prior to 2.5.2 across affected packages: net.minidev:json-smart.
What version fixes CVE-2024-57699?
Upgrading to 2.5.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is json-smart affected?
Yes, net.minidev:json-smart is affected in releases prior to 2.5.2. Upgrade your dependency to 2.5.2 or later.
What is the CVSS score of CVE-2024-57699?
CVE-2024-57699 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2024-57699?
CVE-2024-57699 is classified under CWE-674: Uncontrolled Recursion (The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.).
How can I check Maven dependencies for CVE-2024-57699?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=net.minidev'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-pq2g-wx69-c263",
  "modified" : "2025-03-12T14:28:04Z",
  "published" : "2025-02-06T06:31:26Z",
  "aliases" : [ "CVE-2024-57699" ],
  "summary" : "Netplex Json-smart Uncontrolled Recursion vulnerability",
  "details" : "A security issue was found in Netplex Json-smart 2.5.0 through 2.5.1. When loading a specially crafted JSON input, containing a large number of ’{’, a stack exhaustion can be trigger, which could allow an attacker to cause a Denial of Service (DoS). This issue exists because of an incomplete fix for CVE-2023-1370.\n\nThe fixed version only addresses the default modes provided by [JSONParser](https://github.com/netplex/json-smart-v2/blob/master/json-smart/src/main/java/net/minidev/json/parser/JSONParser.java#L118), such as `MODE_RFC4627`. If you create the JSONParser manually or with custom options, make sure to set the `LIMIT_JSON_DEPTH` option.",
  "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" : "2.5.0"
      }, {
        "fixed" : "2.5.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-57699"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/netplex/json-smart-v2/issues/232"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/netplex/json-smart-v2/issues/233"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/netplex/json-smart-v2/issues/236"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/TurtleLiu/Vul_PoC/tree/main/CVE-2024-57699"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/netplex/json-smart-v2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/netplex/json-smart-v2/releases/tag/2.5.2"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/cve-2023-1370"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-674" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-02-06T19:01:17Z",
    "nvd_published_at" : "2025-02-05T22:15:33Z"
  }
}