CVE-2026-55254Ncalc
Medium 6.5 No auth needed
Follow: this CVE · Ncalc · Ncalc We alert you by email or Slack (account required).
- Priority
- 54
- CVSS 3.1
- 6.5
- EPSS
- —
- Auth required
- No
- Published
- Jul 17, 2026
- Updated
- Aug 18, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Ncalc.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| NuGet | NCalc.Core |
< 6.1.1 |
6.1.1 |
dotnet add package NCalc.Core --version 6.1.1 |
| NuGet | NCalcSync |
< 6.1.1 |
6.1.1 |
dotnet add package NCalcSync --version 6.1.1 |
Per OSV / GitHub Advisories (GHSA-3w5p-95mh-gq75). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| ncalc | ncalc | < 6.1.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Issue Tracking Patch
- github.com Product Release Notes
- github.com Patch Vendor Advisory