CVE-2026-142198

Source
https://cve.org/CVERecord?id=CVE-2026-142198
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142198.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-142198
Published
2026-12-02T16:50:51Z
Modified
2026-12-02T23:45:53Z
Severity
  • 8.7 (High) CVSS_V4 - 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 CVSS Calculator
Summary
NCalc before 7.6.0 Uncontrolled Recursion Denial of Service via EvaluationVisitor
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.

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"
                }
            ]
        }
    ]
}
References

Affected packages

Git / github.com/ncalc/ncalc

Affected ranges

Type
GIT
Repo
https://github.com/ncalc/ncalc
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "fixed":  "f1c03383ff87d7599b881713dd62fecaac1d4b8e"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "original_tag":  "v7.6.0",
            "range":  [
                {
                    "fixed":  "4af67e938992d5fbe018b184bb83f6c64d4bec7c"
                }
            ],
            "source":  "REFERENCES_TAG"
        }
    ]
}

Affected versions

5.*
5.2.1
v2.*
v2.0.0
v3.*
v3.13.1
v4.*
v4.0.0
v4.2.0
v5.*
v5.10.0
v5.2.3
v5.2.5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142198.json"