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 applicationsUpgrade NCalc.Core to version 6.1.1 or higher.
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.
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.