CVE-2026-142199: NCalc before 7.5.0 CPU Exhaustion via Unbounded Pow BigDecimal Computation
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.
Affected Software
Event History
Frequently Asked Questions
Which deployments are most exposed?
Deployments that evaluate NCalc expressions submitted by remote, untrusted users are exposed, particularly where those users can supply decimal operands and very large exponents. The impact is CPU and worker-thread exhaustion rather than data disclosure or modification.
What does an attacker need to exploit this?
An attacker needs the ability to submit an expression containing Pow with a decimal base and an uncapped, very large exponent. No privileges or user interaction are required, but exploitation has high attack complexity.
What version should be used to remediate this issue?
Upgrade NCalc to version 7.5.0 or later. Versions before 7.5.0 are affected.