CVE-2026-55254

Source
https://cve.org/CVERecord?id=CVE-2026-55254
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-55254.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-55254
Aliases
Published
2026-07-17T19:55:16Z
Modified
2026-08-20T03:54:29Z
Severity
  • 4.8 (Medium) CVSS_V3 - CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
Summary
NCalc: Denial of Service via Unbounded and Non-Terminating Factorial Evaluation
Details

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.

Database specific
{
    "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"
}
References

Affected packages

Git / github.com/ncalc/ncalc

Affected ranges

Type
GIT
Repo
https://github.com/ncalc/ncalc
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "cpe": "cpe:2.3:a:ncalc:ncalc:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "6.1.1"
        }
    ],
    "source": [
        "CPE_RANGE",
        "REFERENCES"
    ]
}

Affected versions

5.*
5.2.1
v2.*
v2.0.0
v3.*
v3.13.1
v4.*
v4.0.0
v4.2.0
v5.*
v5.10.0
v5.2.3
v5.2.5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-55254.json"