# CVE-2026-55254: NCalc: Denial of Service via Unbounded and Non-Terminating Factorial Evaluation

- Severity: Medium 4.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2026-06-18T13:05:37.000Z
- Modified: 2026-08-18T15:44:07.357Z
- Also known as: GHSA-3w5p-95mh-gq75
- Weaknesses: CWE-190, CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- ncalc ncalc: < 6.1.1; before 6.1.1
- NCalc.Core (NuGet): before 6.1.1
- NCalcSync (NuGet): before 6.1.1

## Every score

- GitHub_M: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/ncalc/ncalc/security/advisories/GHSA-3w5p-95mh-gq75> (patch, vendor-advisory, web)
- <https://github.com/ncalc/ncalc/pull/575> (issue-tracking, patch, web)
- <https://github.com/ncalc/ncalc/commit/eeb6155ee1899b1fdf2cda3da35a4f0ca93ffd6a> (patch)
- <https://github.com/ncalc/ncalc/releases/tag/v6.1.1> (product, release-notes)
- <https://github.com/ncalc/ncalc> (package)

## Sources

- CVE List: [CVE-2026-55254](https://www.cve.org/CVERecord?id=CVE-2026-55254), CVE Terms of Use, modified 2026-07-20
- GitHub Advisory Database: [GHSA-3w5p-95mh-gq75](https://github.com/advisories/GHSA-3w5p-95mh-gq75), CC-BY-4.0, modified 2026-06-18
- NVD: [CVE-2026-55254](https://nvd.nist.gov/vuln/detail/CVE-2026-55254), Public domain, modified 2026-08-18

---

Page: https://cve.day/CVE-2026-55254 · Whole record: https://cve.day/CVE-2026-55254.json · Rebuilt by cve.day 2026-11-25T22:59:28.550Z
