CVE-2026-55254 Details
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.
A denial-of-service vulnerability has been identified in NCalc, a lightweight expression evaluator for .NET, in versions prior to 6.1.1. The issue arises in the factorial operator implementation, where specially crafted expressions with large factorial operands can cause excessive CPU usage or lead to a non-terminating loop. This behavior is due to integer overflow in the factorial calculation logic, allowing applications to become unresponsive when evaluating untrusted expressions.
Users are advised to upgrade to NCalc version 6.1.1 or later, which includes the necessary fix. If an immediate upgrade is not possible, expressions from untrusted sources should be avoided, and factorial operations on large values should be validated or sanitized before evaluation. Additionally, execution time limits or request timeouts can be implemented to reduce exposure.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/ncalc/ncalc/commit/eeb6155ee1899b1fdf2cda3da35a4f0ca93ffd6a | [email protected] | Patch |
| https://github.com/ncalc/ncalc/pull/575 | [email protected] | Issue TrackingPatch |
| https://github.com/ncalc/ncalc/releases/tag/v6.1.1 | [email protected] | ProductRelease Notes |
| https://github.com/ncalc/ncalc/security/advisories/GHSA-3w5p-95mh-gq75 | [email protected] | PatchVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-190 | Integer Overflow or Wraparound | [email protected] |
| CWE-770 | Allocation of Resources Without Limits or Throttling | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| ncalc ncalc | < 6.1.1 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 18, 2026 | Initial Analysis | [email protected] |
| Jul 20, 2026 | CVE Modified | CISA-ADP |
| Jul 17, 2026 | New CVE Received | [email protected] |