CVE-2026-142198: Vulnerability in NCalc
Patch soon. 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.
CWE-674
- Exploitation
- None confirmed
- Severity
- 7.5 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-cf2f-gqhc-m94x
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weakness
- CWE-674
- Published
- 2 Dec 2026
- Last change
- 4 Dec 2026
Affected products
Affected versions and the first fixed release
- NCalc Before 7.6.0. Fixed in 7.6.0
Advisories
Vendor and security advisories
- github.com/ncalc/ncalc/blob/v7.5.0/src/NCalc.Core/Visitors/EvaluationVisitor.cs
- vulncheck.com/advisories/ncalc-before-7.6.0-uncontrolled-recursion-denial-of-service-vi...
Patches and fixes
Updates, commits and release notes
- github.com/ncalc/ncalc/pull/657
- github.com/ncalc/ncalc/commit/f1c03383ff87d7599b881713dd62fecaac1d4b8e
- github.com/ncalc/ncalc/releases/tag/v7.6.0
Related
- NCalc vulnerabilities Recent advisories, watch this product