Allocation of Resources Without Limits or Throttling Affecting ncalc.core package, versions [,6.1.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DOTNET-NCALCCORE-17707789
  • published30 Jun 2026
  • disclosed18 Jun 2026
  • creditpawlos

Introduced: 18 Jun 2026

NewCVE-2026-55254  (opens in a new tab)
CWE-190  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade NCalc.Core to version 6.1.1 or higher.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the factorial operator implementation. An attacker can cause excessive CPU consumption or application unresponsiveness by submitting specially crafted expressions with extremely large factorial operands.

Workaround

This vulnerability can be mitigated by not evaluating expressions from untrusted users, validating or sanitizing expressions before evaluation to reject large factorial values, and implementing execution time limits, request timeouts, or cancellation mechanisms around expression evaluation.

CVSS Base Scores

version 4.0
version 3.1