AploSec / Disclosures / CVE-2026-142199
NCalc before 7.5.0 CPU Exhaustion via Unbounded Pow BigDecimal Computation
CVE-2026-142199 · published 2026-12-02
In plain words: this type of bug lets someone slow down or crash the service with crafted input (denial of service). A fixed release is listed.
Summary
CVE-2026-142199 affects NCalc (NuGet) < 7.5.0: CPU Exhaustion via Unbounded Pow BigDecimal Computation (CWE-407). Fixed in 7.5.0. CVSS 4.0 base score 8.2 (High), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec).
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.
Evidence
Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.
Remediation
Upgrade NCalc to 7.5.0 or later. Releases in the affected range (< 7.5.0) are vulnerable. See the linked advisory for details on affected release lines.
Timeline
- 2026-12-02 CVE published
References
- Referencehttps://github.com/ncalc/ncalc/issues/639
- VulnCheck advisoryhttps://www.vulncheck.com/advisories/ncalc-before-7.5.0-cpu-exhaustion-via-unbounded-pow-bigdecimal-computation
- Vulnerable codehttps://github.com/ncalc/ncalc/blob/v7.4.0/src/NCalc.Core/Helpers/MathHelper.cs#L285-L301
- Fix commithttps://github.com/ncalc/ncalc/commit/45349916ffa577936453e2aac619d0619de559a4
- Releasehttps://github.com/ncalc/ncalc/releases/tag/v7.5.0
- CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142199
- NVD recordhttps://nvd.nist.gov/vuln/detail/CVE-2026-142199
- Severity
- High 8.2CVSS 4.0, scored by VulnCheck in the CVE record
- Package
- NCalc
- Ecosystem
- NuGet
- Affected
- < 7.5.0
- Fixed
- 7.5.0
- Weakness
- CWE-407
- CNA
- VulnCheck
- Credit
- Zachariah Mithani (AploSec)finder