Skip to main content
← All vulnerabilities
CVE-2026-55254GHSA-3W5P-95MH-GQ75

NCalc: Denial of Service via Unbounded and Non-Terminating Factorial Evaluation

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.1.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • ncalc ncalc

    fixed in 6.1.1

  • NCalc.CoreNuGet

    fixed in 6.1.1

  • NCalcSyncNuGet

    fixed in 6.1.1

References 4

GitHub · ncalc/ncalc