{"id":"CVE-2026-55254","published":"2026-07-17T19:55:16Z","modified":"2026-07-20T18:07:31Z","title":"NCalc: Denial of Service via Unbounded and Non-Terminating Factorial Evaluation","vendor":"ncalc","product":"ncalc","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00292,"percentile":0.14245,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"},{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"references":[{"url":"https://github.com/ncalc/ncalc/security/advisories/GHSA-3w5p-95mh-gq75","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ncalc/ncalc/pull/575","tags":["x_refsource_MISC"]},{"url":"https://github.com/ncalc/ncalc/commit/eeb6155ee1899b1fdf2cda3da35a4f0ca93ffd6a","tags":["x_refsource_MISC"]},{"url":"https://github.com/ncalc/ncalc/releases/tag/v6.1.1","tags":["x_refsource_MISC"]}],"priority":{"score":6.2,"factors":[{"name":"EPSS percentile","points":2.85},{"name":"CVSS severity","points":3.36}]},"vendorSlug":"ncalc","affectedVersions":[{"vendor":"ncalc","product":"ncalc","versions":["< 6.1.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-20T18:06:03.191078Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"NCalc.Core","vulnerableRanges":["<6.1.1"],"patched":["6.1.1"],"from":["GHSA-3w5p-95mh-gq75"],"provenance":"source"},{"ecosystem":"NuGet","package":"NCalcSync","vulnerableRanges":["<6.1.1"],"patched":["6.1.1"],"from":["GHSA-3w5p-95mh-gq75"],"provenance":"source"}],"summary":{"text":"The NCalc expression evaluator for .NET has a flaw in the factorial operator implementation in src/NCalc.Core/Helpers/MathHelper.cs, where integer overflow in the factorial calculation can cause excessive CPU consumption or a non-terminating loop. An attacker who can get an application that evaluates untrusted expressions to process a specially crafted expression with a very large factorial operand can cause denial of service, and this requires the application to accept untrusted expression input, with the attacker reaching it over an adjacent network and user interaction needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:14:28Z"},"euvd":{"id":"EUVD-2026-45304","exploited":false,"provenance":"source"}}