CVE-2026-55254

Medium

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.

SeverityMedium
CVSS4.8
Exploit probability—
ProductNcalc
PublishedJul 17, 2026
First seenJul 17, 2026

How to fix

Update
  • ncalc ncalc6.1.1 or later
  • NCalc.Core6.1.1 or later
  • NCalcSync6.1.1 or later

Affected products

ProductAffected versionsFixed in
ncalc ncalcv < 6.1.16.1.1
NCalc.CoreNuGetv < 6.1.16.1.1
NCalcSyncNuGetv < 6.1.16.1.1

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.