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
Source GCVE Database
Not known to be exploited · CVSS 8.2 High : upgrade to 7.5.0 soon.
Data as of 2 Dec 2026, 19:46 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 8.2 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 5.9 |
- Patch
- Available – fixed in 7.5.0
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 2 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2 Dec 2026.
What to do
Upgrade NCalc to 7.5.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| ncalcNCalc | Affected
| Fixed in
|
NuGetNCalcpkg:nuget/NCalcOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
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 decimal base and huge exponent to hold server threads for seconds to hours, exhausting CPU and worker threads.
References
- nvd.nist.gov/vuln/detail/CVE-2026-142199 (opens in a new tab)
- github.com/ncalc/ncalc/issues/639 (opens in a new tab)
- github.com/ncalc/ncalc/commit/45349916ffa577936453e2aac619d0619de559a4 (opens in a new tab)
- github.com/ncalc/ncalc/blob/v7.4.0/src/NCalc.Core/Helpers/MathHelper.cs (opens in a new tab)
- github.com/ncalc/ncalc/releases/tag/v7.5.0 (opens in a new tab)
- vulncheck.com/advisories/ncalc-before-7.5.0-cpu-exhaustion-via-unbounded-pow-bigdecimal-computation (opens in a new tab)