CVE-2026-142198
NCalc before 7.6.0 contains an uncontrolled recursion vulnerability …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/ncalc/ncalc/blob/v7.5.0/src/NCalc.Core/Visitors/EvaluationVisitor.cs#L69-L74
- github.com/ncalc/ncalc/commit/f1c03383ff87d7599b881713dd62fecaac1d4b8e
- github.com/ncalc/ncalc/pull/657
- github.com/ncalc/ncalc/releases/tag/v7.6.0
- www.vulncheck.com/advisories/ncalc-before-7.6.0-uncontrolled-recursion-denial-of-service-v
- nvd.nist.gov/vuln/detail/CVE-2026-142198
- cve.org/CVERecord?id=CVE-2026-142198
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.