NCalc: Denial of Service via Unbounded and Non-Terminating Factorial Evaluation
Key facts
- Attack vector
- Adjacent network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-190 and the CVSS impact.
Summary
NCalc is a fast, lightweight expression evaluator for .NET. Prior to 6.1.1, the factorial operator implementation in src/NCalc.Core/Helpers/MathHelper.cs permits specially crafted expressions with extremely large factorial operands, causing excessive CPU consumption or a non-terminating loop due to integer overflow in the factorial calculation logic when applications evaluate untrusted expressions. This issue is fixed in version 6.1.1.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| ncalc | ncalc | before 6.1.1 | 6.1.1 | Patch available | CNA |
| — | NCalc.Core (NuGet) | before 6.1.1 | 6.1.1 | Patch available | GHSA-3w5p-95mh-gq75 |
| — | NCalcSync (NuGet) | before 6.1.1 | 6.1.1 | Patch available | GHSA-3w5p-95mh-gq75 |
- ncalc Vendorncalc Affected before 6.1.1 Fixed in 6.1.1 Patch available CNA
- NCalc.Core (NuGet) Vendor— Affected before 6.1.1 Fixed in 6.1.1 Patch available GHSA-3w5p-95mh-gq75
- NCalcSync (NuGet) Vendor— Affected before 6.1.1 Fixed in 6.1.1 Patch available GHSA-3w5p-95mh-gq75
Remediation
- Fix · CNA ncalc (ncalc) Fixed in 6.1.1
- Fix · GHSA-3w5p-95mh-gq75 NCalc.Core (NuGet) Fixed in 6.1.1 Advisory →
- Fix · GHSA-3w5p-95mh-gq75 NCalcSync (NuGet) Fixed in 6.1.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-55254
- 2026-10-03 Alias added: GHSA-3w5p-95mh-gq75
References
Sources
- CVE-2026-55254 · CVE Program
- CVE-2026-55254 · NVD
- FIRST EPSS
- GHSA-3w5p-95mh-gq75 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences