GHSA-pq2g-wx69-c263
Netplex Json-smart Uncontrolled Recursion vulnerability
Quick fix
GHSA-pq2g-wx69-c263 — net.minidev:json-smart: upgrade to the fixed version with the command below.
# pom.xml: bump <version>2.5.2</version> for net.minidev:json-smartDetails
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
2.5.0Fixed in: 2.5.2# pom.xml: bump <version>2.5.2</version> for net.minidev:json-smartReferences
- https://nvd.nist.gov/vuln/detail/CVE-2024-57699[ADVISORY]
- https://github.com/netplex/json-smart-v2/issues/232[WEB]
- https://github.com/netplex/json-smart-v2/issues/233[WEB]
- https://github.com/netplex/json-smart-v2/issues/236[WEB]
- https://github.com/TurtleLiu/Vul_PoC/tree/main/CVE-2024-57699[WEB]
- https://github.com/netplex/json-smart-v2[PACKAGE]
- https://github.com/netplex/json-smart-v2/releases/tag/2.5.2[WEB]
- https://nvd.nist.gov/vuln/detail/cve-2023-1370[ADVISORY]