{"id":"EUVD-2026-45304","revision":null,"records":[{"revision":"28af7cb16d624fe6a0afc69f765f709e","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-55254","aliases":[],"title":"NCalc: Denial of Service via Unbounded and Non-Terminating Factorial Evaluation","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.","state":0,"publishedAt":"2026-07-17T19:55:16.728+00:00","modifiedAt":"2026-07-20T18:07:31.078+00:00","affected":[{"ecosystem":"Vendor product","name":"ncalc","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"ncalc\",\n                    \"product\": \"ncalc\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 6.1.1\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H","score":4.8,"severity":"MEDIUM"}],"references":["https://github.com/ncalc/ncalc/security/advisories/GHSA-3w5p-95mh-gq75","https://github.com/ncalc/ncalc/pull/575","https://github.com/ncalc/ncalc/commit/eeb6155ee1899b1fdf2cda3da35a4f0ca93ffd6a","https://github.com/ncalc/ncalc/releases/tag/v6.1.1"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-55254","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-55254","identifiers":["CVE-2026-55254"]},"retained":false,"historicalAffected":[]},{"revision":"125ebca5d7e64e25a226dc441a921496","observedAt":"2026-11-19T16:51:41.786+00:00","statement":{"source":"euvd","id":"EUVD-2026-45304","aliases":["CVE-2026-55254","GHSA-3w5p-95mh-gq75"],"title":"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…","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H","score":4.8,"severity":null}],"references":["https://github.com/ncalc/ncalc/security/advisories/GHSA-3w5p-95mh-gq75","https://github.com/ncalc/ncalc/pull/575","https://github.com/ncalc/ncalc/commit/eeb6155ee1899b1fdf2cda3da35a4f0ca93ffd6a","https://github.com/ncalc/ncalc/releases/tag/v6.1.1"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-45304","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Jul 17, 2026, 7:55:16 PM","dateUpdated":"Jul 20, 2026, 6:07:31 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-45304","identifiers":["EUVD-2026-45304","CVE-2026-55254","GHSA-3w5p-95mh-gq75"]},"retained":false,"historicalAffected":[]},{"revision":"d0ac85db60bf4209a738b0582b5bb1ad","observedAt":"2026-10-25T13:17:34.255+00:00","statement":{"source":"nvd","id":"CVE-2026-55254","aliases":[],"title":"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…","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.","state":0,"publishedAt":"2026-07-17T20:17:27.023+00:00","modifiedAt":"2026-08-18T15:44:07.357+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H","score":4.8,"severity":"MEDIUM"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":6.5,"severity":"MEDIUM"}],"references":["https://github.com/ncalc/ncalc/commit/eeb6155ee1899b1fdf2cda3da35a4f0ca93ffd6a","https://github.com/ncalc/ncalc/pull/575","https://github.com/ncalc/ncalc/releases/tag/v6.1.1","https://github.com/ncalc/ncalc/security/advisories/GHSA-3w5p-95mh-gq75"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-55254","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-190","CWE-770"],"productCriteria":["cpe:2.3:a:ncalc:ncalc:*:*:*:*:*:*:*:*"],"sourceDates":{"published":"2026-07-17T20:17:27.023","lastModified":"2026-08-18T15:44:07.357"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-55254","identifiers":["CVE-2026-55254"]},"retained":false,"historicalAffected":[]},{"revision":"8b7ca7b18cc64215afafc634183b16a9","observedAt":"2026-10-23T16:01:25.029+00:00","statement":{"source":"osv","id":"GHSA-3w5p-95mh-gq75","aliases":["CVE-2026-55254"],"title":"NCalc: Denial of Service via Unbounded and Non-Terminating Factorial Evaluation","description":"### Impact\n\nA denial-of-service (DoS) vulnerability exists in the factorial operator implementation of NCalc. Specially crafted expressions containing extremely large factorial operands can trigger excessive CPU consumption or cause evaluation to enter a non-terminating loop due to integer overflow in the factorial calculation logic.\n\nApplications that evaluate untrusted expressions using affected versions of NCalc may be vulnerable to resource exhaustion, potentially resulting in service disruption or application unresponsiveness.\n\nThis issue can be triggered with expressions such as:\n\n```text\n99999999999999!\n9223372036854775807!\n1.5e16!\n```\n\n### Patches\n\nThe vulnerability has been fixed by adding bounds validation for factorial operands and rejecting unsupported values before evaluation.\n\nUsers should upgrade to the first release containing the fix from pull request #575. (**v6.1.1+**)\n\n### Workarounds\n\nIf upgrading is not immediately possible:\n\n* Do not evaluate expressions originating from untrusted users.\n* Validate or sanitize expressions before evaluation and reject factorial operations on large values.\n* Implement execution time limits, request timeouts, or cancellation mechanisms around expression evaluation.\n\nThese mitigations may reduce exposure but do not fully address the underlying vulnerability.","state":0,"publishedAt":"2026-06-18T13:05:37+00:00","modifiedAt":"2026-06-18T13:26:30.567364+00:00","affected":[{"ecosystem":"NuGet","name":"NCalc.Core","ranges":[{"type":"ECOSYSTEM","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"6.1.1"}]}],"versions":["4.3.0","4.3.1","4.3.2","4.3.3","4.4.0-alpha","5.0.0","5.1.0","5.10.0","5.11.0","5.12.0","5.13.0","5.2.0","5.2.1","5.2.10","5.2.11","5.2.2","5.2.3","5.2.4","5.2.5","5.2.6","5.2.7","5.2.8","5.2.9","5.3.0","5.3.1","5.4.0","5.4.1","5.4.2","5.5.0","5.5.0-alpha","5.6.0","5.7.0","5.8.0","5.9.0","6.0.0","6.1.0"],"rawVersionEvidence":null},{"ecosystem":"NuGet","name":"NCalcSync","ranges":[{"type":"ECOSYSTEM","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"6.1.1"}]}],"versions":["2.0.0","3.0.0","3.1.0","3.10.0","3.11.0","3.12.0","3.13.0","3.13.1","3.2.0","3.3.0","3.4.0","3.5.0","3.6.0","3.7.0","3.8.0","3.9.0","4.0.0","4.1.0","4.2.0","4.2.1","4.3.0","4.3.1","4.3.2","4.3.3","4.4.0-alpha","5.0.0","5.1.0","5.10.0","5.11.0","5.12.0","5.13.0","5.2.0","5.2.1","5.2.10","5.2.11","5.2.2","5.2.3","5.2.4","5.2.5","5.2.6","5.2.7","5.2.8","5.2.9","5.3.0","5.3.1","5.4.0","5.4.1","5.4.2","5.5.0","5.5.0-alpha","5.6.0","5.7.0","5.8.0","5.9.0","6.0.0","6.1.0"],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/ncalc/ncalc/security/advisories/GHSA-3w5p-95mh-gq75","https://github.com/ncalc/ncalc/pull/575","https://github.com/ncalc/ncalc"],"sourceUrl":"https://github.com/advisories/GHSA-3w5p-95mh-gq75","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-3w5p-95mh-gq75","identifiers":["GHSA-3w5p-95mh-gq75","CVE-2026-55254"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-21T12:15:57.7243701+00:00","complete":true,"records":1790,"lastAttemptAt":"2026-11-21T12:15:57.7243701+00:00","lastSuccessAt":"2026-11-21T12:15:57.8986652+00:00","error":null,"lastVerifiedAt":"2026-11-21T12:15:57.8986661+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-1d6c61c44cf3e269b6d60ed2fe0a3aa1f7e55445c7f170f16f2fa063bbf73db3-18152af2cb115f58b2333f5af715b7050c1c1916904e58a2c8af40e43c7671d3","complete":true,"records":430117,"lastAttemptAt":"2026-11-21T12:15:57.208927+00:00","lastSuccessAt":"2026-11-21T12:15:57.17481+00:00","error":null,"lastVerifiedAt":"2026-11-21T12:15:57.208927+00:00","snapshotPublishedAt":"2026-11-21T11:18:41+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-228319aac2d14544b5e8dc5bee43f090","complete":false,"records":13919,"lastAttemptAt":"2026-11-21T12:26:06.8841301+00:00","lastSuccessAt":"2026-11-21T12:26:06.88+00:00","error":"264 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-21T12:26:06.88+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13583,"expectedIdentifiers":13967,"failedIdentifiers":264},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-21T12:15:57.7243701+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-21T12:15:57.7243701+00:00","lastSuccessAt":"2026-11-21T12:15:57.8994481+00:00","error":null,"lastVerifiedAt":"2026-11-21T12:15:57.8994483+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-aa12646f31c14e05b6115135ee3d7c51","complete":true,"records":13931,"lastAttemptAt":"2026-11-21T12:15:59.3751759+00:00","lastSuccessAt":"2026-11-21T12:15:59.371+00:00","error":null,"lastVerifiedAt":"2026-11-21T12:15:59.371+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13967,"expectedIdentifiers":13967,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-99c78bee98bf8a60587f33f568944b12d3afe17ecc41437c57b47e2204cce04d","complete":true,"records":9989,"lastAttemptAt":"2026-11-21T12:15:57.5844613+00:00","lastSuccessAt":"2026-11-21T00:54:34.963487+00:00","error":null,"lastVerifiedAt":"2026-11-21T12:15:57.5844613+00:00","snapshotPublishedAt":"2026-11-21T00:03:07+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-21T12:15:57.3736092+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-21T12:15:57.3736092+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-2c09f95d48acb57436aa1dd2f0eec6f651dce8d1621b6978554be0f0b129faa4","complete":true,"records":3209,"lastAttemptAt":"2026-11-21T12:15:57.6909513+00:00","lastSuccessAt":"2026-11-20T23:48:55.8565941+00:00","error":null,"lastVerifiedAt":"2026-11-21T12:15:57.6909513+00:00","snapshotPublishedAt":"2026-11-20T23:48:16+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-14439d295cda6d6706536c3efcb7f193a982609cf031218db7fa9ef26fdcc725","complete":true,"records":232850,"lastAttemptAt":"2026-11-21T12:15:57.4759989+00:00","lastSuccessAt":"2026-11-21T03:47:49.8245357+00:00","error":null,"lastVerifiedAt":"2026-11-21T12:15:57.4759989+00:00","snapshotPublishedAt":"2026-11-21T03:33:18+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}