CVE-2026-55254 PUBLISHED

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

Assigner: GitHub_M
Reserved: 16.06.2026 Published: 17.07.2026 Updated: 17.07.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS Score: 4.8

Product Status

Vendor ncalc
Product ncalc
Versions
  • Version < 6.1.1 is affected

References

Problem Types

  • CWE-770: Allocation of Resources Without Limits or Throttling CWE
  • CWE-190: Integer Overflow or Wraparound CWE