Skip to content
Heist/ feed
Back to feed
High

Stack exhaustion in json-smart leads to denial of service when parsing malformed JSON

Type: advisorySources: OSV

[Json-smart](https://netplex.github.io/json-smart/) is a performance focused, JSON processor lib. When reaching a ‘[‘ or ‘{‘ character in the JSON input, the code parses an array or an object respectively. It 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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-1370
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 16:03 UTC · Revision 1

Source evidence

Stack exhaustion in json-smart leads to denial of service when parsing malformed JSON

core-osv · Original source

Published 13 Mar 2023, 09:04 UTC

[Json-smart](https://netplex.github.io/json-smart/) is a performance focused, JSON processor lib. When reaching a ‘[‘ or ‘{‘ character in the JSON input, the code parses an array or an object respectively. It 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.

osv:CVE-2023-1370
Complete source record
{
  "id": "0432e230b6b667e31dc71ea80ec2d8299e8afa1b2fc7ff2acb73a68af6120c14",
  "url": "https://osv.dev/vulnerability/CVE-2023-1370",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "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. When reaching a ‘[‘ or ‘{‘ character in the JSON input, the code parses an array or an object respectively. It 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.",
    "evidence": "osv:CVE-2023-1370",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2023-1370",
      "aliases": [
        "CVE-2023-1370",
        "GHSA-493p-pfq6-5258"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/netplex/json-smart-v2",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "08517d2033289386aa97462ce43b986eee928b9f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:json-smart_project:json-smart:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.4.9"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.4.8",
            "2.4.5",
            "2.4.1",
            "2.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-1370.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:37.098299333Z",
      "provider": "osv",
      "references": [
        "https://mvnrepository.com",
        "https://research.jfrog.com/vulnerabilities/stack-exhaustion-in-json-smart-leads-to-denial-of-service-when-parsing-malformed-json-xray-427633/",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/1xxx/CVE-2023-1370.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-1370",
        "https://security.netapp.com/advisory/ntap-20240621-0006/"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-674"
        ],
        "cna_assigner": "JFROG",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "2.4.9"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/1xxx/CVE-2023-1370.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-1370",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 504455,
  "published_at": "2023-03-13T09:04:36.365+00:00"
}