CVE-2026-55254
MEDIUM 6.5CVSS 3.1NCalc: Denial of Service via Unbounded and Non-Terminating Factorial Evaluation
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.
- Published
- 17 Jul 2026
- Last modified
- 18 Aug 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-190CWE-770
- Also known as
- GHSA-3w5p-95mh-gq75
- Sources
- NVDJSONOSV GHSA-3w5p-95mh-gq75JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.8 | CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.8 | CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ncalc | ncalccpe:2.3:a:ncalc:ncalc:*:*:*:*:*:*:*:* |
< 6.1.1 | 6.1.1 |
| OSV | NuGet | NCalc.Core | < 6.1.1 | 6.1.1 |
| OSV | NuGet | NCalcSync | < 6.1.1 | 6.1.1 |
References
- https://github.com/ncalc/ncalc/commit/eeb6155ee1899b1fdf2cda3da35a4f0ca93ffd6a · Patch
- https://github.com/ncalc/ncalc/pull/575 · Issue Tracking, Patch, WEB
- https://github.com/ncalc/ncalc/releases/tag/v6.1.1 · Product, Release Notes
- https://github.com/ncalc/ncalc/security/advisories/GHSA-3w5p-95mh-gq75 · Patch, Vendor Advisory, WEB
- https://github.com/ncalc/ncalc · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 17 Jul 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 18 Jun 2026)