Unrated severityNVD Advisory· Published Dec 2, 2026
NCalc before 7.6.0 Uncontrolled Recursion Denial of Service via EvaluationVisitor
CVE-2026-142198
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.
Patches
Vulnerability mechanics
References
5- github.com/ncalc/ncalc/commit/f1c03383ff87d7599b881713dd62fecaac1d4b8emitrepatch
- github.com/ncalc/ncalc/pull/657mitreissue-trackingpatch
- www.vulncheck.com/advisories/ncalc-before-7.6.0-uncontrolled-recursion-denial-of-service-via-evaluationvisitormitrethird-party-advisory
- github.com/ncalc/ncalc/blob/v7.5.0/src/NCalc.Core/Visitors/EvaluationVisitor.csmitretechnical-description
- github.com/ncalc/ncalc/releases/tag/v7.6.0mitrerelease-notes
News mentions
0No linked articles in our index yet.