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

Patches and fixes

Updates, commits and release notes

Related