Home › CVE › Vulnerabilities
CVE-2026-142198 — NCalc
One of 2 NCalc vulnerabilities published together by NVD: our article covers all of them.
VulnerabilitiesSummary
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.
Severity breakdown
High · 8.7
An attacker without an account can exploit this over the network, without any user action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Special conditions
- none
- Login needed
- no
- User action needed
- no
- Impact
- high on availability, none on confidentiality and integrity
- Impact on other systems
- none
Weakness
- CWE-674: Uncontrolled Recursion
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| NCalc | < 7.6.0 | 7.6.0 |
References by type
Patches and fixed releases
- github.com/ncalc/ncalc/commit/f1c03383ff87d7599b881713dd62fecaac1d4b8e
- github.com/ncalc/ncalc/pull/657
- github.com/ncalc/ncalc/releases/tag/v7.6.0
Other references
Affected
- NCalc
What to do
- Check whether you run an affected product or version and apply the vendor's update or mitigation.
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-142198?
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. Weakness type: Uncontrolled Recursion (CWE-674).
How severe is CVE-2026-142198?
CVE-2026-142198 has a CVSS 4.0 base score of 8.7 (high), from the CNA (vulncheck.com). An attacker without an account can exploit this over the network, without any user action.
Is CVE-2026-142198 being exploited?
Not as far as is known: CVE-2026-142198 is not in CISA's Known Exploited Vulnerabilities catalog as of December 4, 2026. EPSS estimates a 0.8% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-142198?
NCalc < 7.6.0 (fixed in 7.6.0).
How do I fix CVE-2026-142198?
Update to a fixed release: NCalc 7.6.0.