CVE-2026-55254
NCalc is a fast, lightweight expression evaluator for .NET. Prior …
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 now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/ncalc/ncalc/security/advisories/GHSA-3w5p-95mh-gq75
- github.com/ncalc/ncalc/pull/575
- github.com/advisories/GHSA-3w5p-95mh-gq75
- github.com/ncalc/ncalc/commit/eeb6155ee1899b1fdf2cda3da35a4f0ca93ffd6a
- github.com/ncalc/ncalc/releases/tag/v6.1.1
- nvd.nist.gov/vuln/detail/CVE-2026-55254
- cve.org/CVERecord?id=CVE-2026-55254
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.