CVE-2026-142198
7.5HighPublished Dec 2, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite
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.
$ dotnet add package NCalc --version 7.6.0AI-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
- https://github.com/ncalc/ncalc/blob/v7.5.0/src/NCalc.Core/Visitors/EvaluationVisitor.cs#L69-L74
- https://github.com/ncalc/ncalc/commit/f1c03383ff87d7599b881713dd62fecaac1d4b8e
- https://github.com/ncalc/ncalc/pull/657
- https://github.com/ncalc/ncalc/releases/tag/v7.6.0
- https://www.vulncheck.com/advisories/ncalc-before-7.6.0-uncontrolled-recursion-denial-of-service-via-evaluationvisitor
Related Critical / High CVEs
More fully triaged vulnerabilities you may want to check next.
- CVE-2026-1424417.5HighRemote attackers can bypass IP access control lists to reach protected services. This occurs because the filter fails to correctly evaluate nested network range rules.
- CVE-2026-1415177.8HighLocal attackers can escape a sandboxed workload to execute code as the invoking user. This requires the attacker to control a sandboxed workload and manipulate the containment helper during a launch rebuild.
- CVE-2026-1043757.1HighAttackers can execute arbitrary JavaScript in users' browsers by exploiting the polyfill.io supply chain compromise. This requires a user to visit the affected demo page.
- CVE-2026-54328.1HighAdjacent attackers can crash Honeywell controllers or cause data integrity issues. This requires network access to the control network.
- CVE-2026-54318.1HighAdjacent attackers can achieve remote code execution by manipulating writable configuration files. This requires network access to the affected Honeywell industrial control systems.
- CVE-2026-185439.3CriticalUnauthenticated attackers can execute arbitrary JavaScript in an administrator's browser session. This requires an administrator to view the Recent Web User Logins dashboard gadget.