CVE-2026-55254

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

State
Published
Severity
4.8 Medium
Published
Jul 17, 2026
Updated
Jul 20, 2026
Reserved
Jun 16, 2026

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
3.14.8 MediumCVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:HGitHub_M

Weaknesses

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

Affected Products

ProductVersions
ncalcncalc
  • < 6.1.1Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.