CVE-2026-142198

7.5High

Published Dec 2, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite

7.5CVSS

High

0CVSS v3.110

Attack vector
Network
Complexity
Low
Privileges
None
User action
None
Impact
High impact on availability
Weakness
CWE-674

What an attacker gets

Unauthenticated attackers can crash your application by sending specially crafted mathematical expressions. This triggers a stack overflow that terminates the process.

Root cause

The EvaluationVisitor class uses uncontrolled recursion when processing long chains of operators, leading to stack exhaustion.

Affected versions

NCalc before 7.6.0

CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Fix & remediation

Upgrade to NCalc 7.6.0 or later. If you cannot update, implement input validation to restrict the length and complexity of expressions submitted to the evaluator.

remediation — bash
$ dotnet add package NCalc --version 7.6.0

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD description

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.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-142198

More fully triaged vulnerabilities you may want to check next.