{"id":"CVE-2023-1370","aliases":["CVE-2023-1370","GHSA-493p-pfq6-5258"],"related":[],"kind":"vulnerability","state":"published","title":"Stack exhaustion in json-smart leads to denial of service when parsing malformed JSON","summary":"[Json-smart](https://netplex.github.io/json-smart/) is a performance focused, JSON processor lib.\n\nWhen reaching a ‘[‘ or ‘{‘ character in the JSON input, the code parses an array or an object respectively.\n\nIt was discovered that the code 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 a stack exhaustion (stack overflow) and crash the software.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"[Json-smart](https://netplex.github.io/json-smart/) is a performance focused, JSON processor lib.\n\nWhen reaching a ‘[‘ or ‘{‘ character in the JSON input, the code parses an array or an object respectively.\n\nIt was discovered that the code 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 a stack exhaustion (stack overflow) and crash the software.","source":"cvelist"},{"lang":"en","text":"### 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","format":"markdown","source":"ghsa"}],"published":"2023-03-13T09:04:36.365Z","modified":"2026-09-10T03:49:52.396Z","severity":{"scorer":"JFROG","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"JFROG","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-674"],"affected":[{"ranges":[{"type":"maven","introduced":"0","fixed":"2.4.9","status":"affected"}],"vendor":"json-smart","product":"json-smart","package":"net.minidev:json-smart","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.4.9"}],"ecosystem":"Maven","package":"net.minidev:json-smart","purl":"pkg:maven/net.minidev/json-smart","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.4.9"}],"vendor":"json-smart_project","product":"json-smart","cpe":"cpe:2.3:a:json-smart_project:json-smart:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://research.jfrog.com/vulnerabilities/stack-exhaustion-in-json-smart-leads-to-denial-of-service-when-parsing-malformed-json-xray-427633/","tags":["exploit","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20240621-0006/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-1370","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/netplex/json-smart-v2/issues/137","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/netplex/json-smart-v2/commit/5b3205d051952d3100aa0db1535f6ba6226bd87a","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/netplex/json-smart-v2/commit/e2791ae506a57491bc856b439d706c81e45adcf8","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/oswaldobapvicjr/jsonmerge","tags":["package"],"sources":["ghsa"]},{"url":"https://research.jfrog.com/vulnerabilities/stack-exhaustion-in-json-smart-leads-to-denial-of-service-when-parsing-malformed-json-xray-427633","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20240621-0006","tags":["web"],"sources":["ghsa"]},{"url":"https://security.snyk.io/vuln/SNYK-JAVA-NETMINIDEV-3369748","tags":["web"],"sources":["ghsa"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-1370","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"JFROG","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2025-02-27T19:09:38.903Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-1370","url":"https://www.cve.org/CVERecord?id=CVE-2023-1370","licence":"CVE Terms of Use","modified":"2025-02-27T19:09:50.662Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-493p-pfq6-5258","url":"https://github.com/advisories/GHSA-493p-pfq6-5258","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:52.396Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-1370","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-1370","licence":"Public domain","modified":"2026-06-17T05:27:47.853Z"}],"updatedAt":"2026-11-25T22:58:22.562Z","epss":{"score":0.01119,"percentile":0.67069,"date":"2026-12-01T12:00:22.000Z"}}