CVE-2026-142199: Vulnerability in NCalc
Patch soon. 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.
CWE-407
- Exploitation
- None confirmed
- Severity
- 8.2 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-6g2c-pc9v-4cff
- Vector
- CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- Weakness
- CWE-407
- Published
- 2 Dec 2026
- Last change
- 5 Dec 2026
Affected products
Affected versions and the first fixed release
- NCalc Before 7.5.0. Fixed in 7.5.0
Advisories
Vendor and security advisories
- github.com/ncalc/ncalc/blob/v7.4.0/src/NCalc.Core/Helpers/MathHelper.cs
- github.com/ncalc/ncalc/issues/639
- vulncheck.com/advisories/ncalc-before-7.5.0-cpu-exhaustion-via-unbounded-pow-bigdecimal...
Patches and fixes
Updates, commits and release notes
- github.com/ncalc/ncalc/commit/45349916ffa577936453e2aac619d0619de559a4
- github.com/ncalc/ncalc/releases/tag/v7.5.0
Related
- NCalc vulnerabilities Recent advisories, watch this product