{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "f1c03383ff87d7599b881713dd62fecaac1d4b8e"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v7.6.0",
                "range": [
                  {
                    "fixed": "4af67e938992d5fbe018b184bb83f6c64d4bec7c"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "f1c03383ff87d7599b881713dd62fecaac1d4b8e"
            },
            {
              "fixed": "4af67e938992d5fbe018b184bb83f6c64d4bec7c"
            }
          ],
          "repo": "https://github.com/ncalc/ncalc",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-674"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142198.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "range": [
              {
                "fixed": "7.6.0"
              }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandardRange"
          }
        ]
      },
      {
        "extracted_events": [
          {
            "range": [
              {
                "fixed": "7.6.0"
              }
            ],
            "source": "CPE_FIELD",
            "strategy": "CPEApplicability"
          }
        ]
      },
      {
        "extracted_events": [
          {
            "range": [
              {
                "fixed": "7.6.0"
              }
            ],
            "source": "DESCRIPTION"
          }
        ]
      }
    ]
  },
  "details": "NCalc before 7.6.0 contains an uncontrolled recursion vulnerability that allows attackers to crash the host process by supplying long flat chains of operators. Attackers can submit an expression of a few thousand chained unary negation, factorial, or addition terms that recursively exhausts the thread stack in EvaluationVisitor, triggering an uncatchable StackOverflowException that terminates the application.",
  "id": "CVE-2026-142198",
  "modified": "2026-12-02T23:45:53.124870998Z",
  "published": "2026-12-02T16:50:51.582Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142198.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/ncalc/ncalc"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/ncalc/ncalc/blob/v7.5.0/src/NCalc.Core/Visitors/EvaluationVisitor.cs#L69-L74"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ncalc/ncalc/commit/f1c03383ff87d7599b881713dd62fecaac1d4b8e"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ncalc/ncalc/pull/657"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/ncalc/ncalc/releases/tag/v7.6.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142198"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/ncalc-before-7.6.0-uncontrolled-recursion-denial-of-service-via-evaluationvisitor"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "NCalc before 7.6.0 Uncontrolled Recursion Denial of Service via EvaluationVisitor"
}