Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-142198
Published:December 02, 2026
Updated:December 03, 2026
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.
Affected Packages
NCalc.Sync.dll (DOT_NET):
Affected version(s) >=5.0.0.5 <7.6.0.15 || >=4.3.0.13 <7.6.0.15
Fix Suggestion:
Update to version 7.6.0.15
NCalc.LambdaCompilation.dll (DOT_NET):
Affected version(s) >=5.6.0.4 <7.6.0.15 || >=7.0.0.2 <7.6.0.15 || >=6.0.0.4 <7.6.0.15
Fix Suggestion:
Update to version 7.6.0.15
NCalc.dll (DOT_NET):
Affected version(s) >=4.0.0.1 <7.6.0.15 || =2.0.0.0 <7.6.0.15 || >=3.0.0.5 <7.6.0.15 || >=1.3.6.0 <7.6.0.15
Fix Suggestion:
Update to version 7.6.0.15
NCalc.Async.dll (DOT_NET):
Affected version(s) >=5.0.0.5 <7.6.0.15 || >=4.3.0.16 <7.6.0.15
Fix Suggestion:
Update to version 7.6.0.15
NCalc.Core.dll (DOT_NET):
Affected version(s) >=5.0.0.5 <7.6.0.15 || >=4.3.0.13 <7.6.0.15 || >=7.0.0.2 <7.6.0.15 || >=6.0.0.4 <7.6.0.15
Fix Suggestion:
Update to version 7.6.0.15
https://github.com/ncalc/ncalc.git (GITHUB):
Affected version(s) >=v1.3.7 <v7.6.0 || =v2.0.0 <v7.6.0 || >=v3.0.0 <v7.6.0 || >=v4.0.0 <v7.6.0 || >=v5.0.0 <v7.6.0 || =5.2.1 <v7.6.0 || >=v6.0.0 <v7.6.0 || >=v7.0.0 <v7.6.0
Fix Suggestion:
Update to version v7.6.0
ncalcsync (NUGET):
Affected version(s) =2.0.0 <7.6.0 || >=3.0.0 <7.6.0 || >=5.0.0 <7.6.0 || >=4.0.0 <7.6.0
Fix Suggestion:
Update to version 7.6.0
ncalc.core (NUGET):
Affected version(s) >=5.0.0 <7.6.0 || >=4.3.0 <7.6.0 || >=7.0.0 <7.6.0 || >=6.0.0 <7.6.0
Fix Suggestion:
Update to version 7.6.0
ncalcasync (NUGET):
Affected version(s) >=5.0.0 <7.6.0 || >=4.3.0 <7.6.0
Fix Suggestion:
Update to version 7.6.0
ncalc.lambdacompilation (NUGET):
Affected version(s) >=7.0.0 <7.6.0 || >=5.6.0 <7.6.0 || >=6.0.0 <7.6.0
Fix Suggestion:
Update to version 7.6.0
ncalc (NUGET):
Affected version(s) >=1.3.6 <7.6.0
Fix Suggestion:
Update to version 7.6.0
Do you need more information?
Contact Us
CVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
Uncontrolled Recursion