Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › Vulnerabilities › NCalc

High 8.7 2 CVEs Analysis

NCalc flaws let crafted expressions crash host processes or exhaust CPU; fix in 7.6.0

Two high-severity NCalc vulnerabilities let an attacker submit a specially built expression to crash the host process or tie up CPU and worker threads. The records name version 7.6.0 as the fixed release for the more severe flaw.

What to look into

  • 2 vulnerabilities in NCalc: 2 high (CVSS up to 8.7).
  • None of them is known to be exploited yet.
  • Start with CVE-2026-142198 (8.7 high): 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… An attacker without an account can exploit this over the network, without any user action.
  • 2 of 2 can be attacked over the network without logging in, 2 of them without anyone clicking anything.
  • Kinds of flaws: Uncontrolled Recursion; Inefficient Algorithmic Complexity.
Vulnerabilities

Key points

  • CVE-2026-142198 (CVSS 8.7) can crash the host process through a stack overflow that cannot be caught.
  • CVE-2026-142199 (CVSS 8.2) lets a crafted decimal Pow expression exhaust CPU and worker threads.
  • Both records are rated HIGH, and neither reports exploitation.
  • The records do not state any workaround.

Two denial-of-service flaws from crafted expressions

The batch contains two high-severity NCalc records. Both describe denial-of-service conditions triggered by submitting specially built expressions. Neither record reports exploitation.

CVE-2026-142198 (CVSS 8.7)

This is the more severe record and affects NCalc before 7.6.0. Long, flat chains of unary negation, factorial, or addition terms, a few thousand in length, cause uncontrolled recursion in EvaluationVisitor. This exhausts the thread stack. The resulting StackOverflowException cannot be caught, so the host process terminates.

CVE-2026-142199 (CVSS 8.2)

This record affects NCalc before 7.5.0. According to the record, MathHelper.Pow does not cap exponents when the operands are decimal. An expression with a decimal base and a very large exponent can hold a server thread for seconds to hours, exhausting CPU and worker threads. This is a resource consumption issue rather than a crash.

Who is affected and what to do

Any deployment running an NCalc version earlier than 7.6.0 falls within the stated range of the first record, and one earlier than 7.5.0 falls within the second. The records name 7.6.0 and 7.5.0 as the fixed versions, so 7.6.0 or later covers both. The sources do not describe workarounds or detection methods, so none are given here.

What to do

  1. Upgrade NCalc to version 7.6.0 or later, which is the fixed version named for CVE-2026-142198 and covers the 7.5.0 fix for CVE-2026-142199.
  2. Check whether any deployment running NCalc before these versions accepts expressions that are not fully trusted, since the records describe attackers supplying such expressions.

Our article about all 2 vulnerabilities, written with AI assistance from the official records listed below. Each CVE's page has its details.

The 2 vulnerabilities

  • CVE-2026-142198 8.7 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, fa…
  • CVE-2026-142199 8.2 NCalc before 7.5.0 contains an uncontrolled resource consumption vulnerability in MathHelper.Pow that allows attackers to exhaust CPU by supplying uncapped exponents with decimal operands. Attackers can submit expressions like Pow with a d…

Frequently asked questions

How many NCalc vulnerabilities were published on December 2, 2026?

2 vulnerabilities: 2 high, with CVSS scores up to 8.7.

Are any of them being exploited?

None of them is in CISA's Known Exploited Vulnerabilities catalog yet.

Which one should be fixed first?

CVE-2026-142198 (CVSS 8.7): 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…

Original records