PT-2026-50732 · Nuget+2 · Ncalc.Core+2

CVE-2026-55254

·

Published

2026-06-18

·

Updated

2026-07-20

CVSS v3.1

6.5

Medium

VectorAV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions NCalc versions prior to 6.1.1
Description The factorial operator implementation in src/NCalc.Core/Helpers/MathHelper.cs allows specially crafted expressions with extremely large factorial operands to cause excessive CPU consumption or a non-terminating loop. This occurs due to integer overflow in the factorial calculation logic when the application evaluates untrusted expressions, potentially leading to resource exhaustion and service disruption.
Recommendations Update to version 6.1.1 or later. Do not evaluate expressions originating from untrusted users. Validate or sanitize expressions before evaluation and reject factorial operations on large values. Implement execution time limits, request timeouts, or cancellation mechanisms around expression evaluation.

Exploit

Fix

Integer Overflow

Allocation of Resources Without Limits

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-55254
GHSA-3W5P-95MH-GQ75

Affected Products

Ncalc.Core
Ncalcsync
Ncalc