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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-190",
"CWE-770"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55254.json"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:ncalc:ncalc:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "6.1.1"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "eeb6155ee1899b1fdf2cda3da35a4f0ca93ffd6a"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v6.1.1",
"range": [
{
"fixed": "e885002a859c72eaf00b16a92d239960d289742f"
}
],
"source": "REFERENCES_TAG"
}
]
}