CVE-2026-142199: NCalc Algorithmic Complexity DoS
Published 2026-12-02 · Updated 2026-12-05 · Source disclosure@vulncheck.com
Not known to be exploited · medium severity — update NCalc to 7.5.0 or later on your normal schedule.
What to do
- Update NCalc to version 7.5.0 or later. Versions before 7.5.0 are affected.
- Until it is patched, do not leave NCalc reachable from the internet or other untrusted networks; restrict access by firewall, VPN or allow-list.
- Limit input size and apply request timeouts in front of the affected service.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| NCalc | < 7.5.0 | 7.5.0 |
Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.
How it can be exploited
It can be exploited remotely over the network; the attacker does not need an account, and no action by a victim is required. Attack complexity is high, so exploitation depends on conditions the attacker does not control. The impact on availability is rated high.
| Attack vector | Network | It can be exploited remotely over the network. |
|---|---|---|
| Attack complexity | High | Success depends on conditions outside the attacker's control. |
| Privileges required | None | The attacker does not need an account. |
| User interaction | None | No action by a victim is needed. |
| Confidentiality | None | No effect on confidentiality. |
| Integrity | None | No effect on integrity. |
| Availability | High | Total loss of availability. |
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness: Algorithmic Complexity DoS
Crafted input triggers worst-case processing time, tying up the service.
Classified as CWE-407.
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.
Advisory text as published in the NVD record.
References
- Patchhttps://github.com/ncalc/ncalc/commit/45349916ffa577936453e2aac619d0619de559a4
- Patchhttps://github.com/ncalc/ncalc/releases/tag/v7.5.0
- Advisoryhttps://www.vulncheck.com/advisories/ncalc-before-7.5.0-cpu-exhaustion-via-unbounded-pow-bigdecimal-computation
- Referencehttps://github.com/ncalc/ncalc/blob/v7.4.0/src/NCalc.Core/Helpers/MathHelper.cs#L285-L301
- Referencehttps://github.com/ncalc/ncalc/issues/639