Search

Find a vulnerability

Search criteria

    7 vulnerabilities found for NCalc by ncalc

    CVE-2026-142199 (GCVE-0-2026-142199)

    Vulnerability from nvd – Published: 2026-12-02 16:50 – Updated: 2026-12-02 16:50
    VLAI
    Title
    NCalc before 7.5.0 CPU Exhaustion via Unbounded Pow BigDecimal Computation
    Summary
    NCalc before 7.5.0 contains an uncontrolled resource consumption vulnerability in MathHelper.Pow that allows attackers to exhaust CPU by supplying uncapped exponents with decimal operands. Attackers can submit expressions like Pow with a decimal base and huge exponent to hold server threads for seconds to hours, exhausting CPU and worker threads.
    CWE
    • CWE-407 - Inefficient Algorithmic Complexity
    Assigner
    VulnCheck CNA under the mitre root
    CNA scorecard B 84/100 over 10107 records in the last 180 days details
    Impacted products
    Vendor Product Version
    ncalc NCalc Affected: 0 , < 7.5.0 (semver)
        cpe:2.3:a:ncalc:ncalc:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-13 00:00
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "defaultStatus": "unaffected",
              "packageURL": "pkg:nuget/NCalc.Core",
              "product": "NCalc",
              "repo": "https://github.com/ncalc/ncalc",
              "vendor": "ncalc",
              "versions": [
                {
                  "lessThan": "7.5.0",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ncalc:ncalc:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "7.5.0",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Zachariah Mithani (AploSec)"
            }
          ],
          "datePublic": "2026-11-13T00:00:00.000Z",
          "descriptions": [
            {
              "lang": "en",
              "value": "NCalc before 7.5.0 contains an uncontrolled resource consumption vulnerability in MathHelper.Pow that allows attackers to exhaust CPU by supplying uncapped exponents with decimal operands. Attackers can submit expressions like Pow with a decimal base and huge exponent to hold server threads for seconds to hours, exhausting CPU and worker threads."
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "attackComplexity": "HIGH",
                "attackRequirements": "PRESENT",
                "attackVector": "NETWORK",
                "baseScore": 8.2,
                "baseSeverity": "HIGH",
                "privilegesRequired": "NONE",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "NONE",
                "vectorString": "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "HIGH",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "NONE"
              },
              "format": "CVSS"
            },
            {
              "cvssV3_1": {
                "attackComplexity": "HIGH",
                "attackVector": "NETWORK",
                "availabilityImpact": "HIGH",
                "baseScore": 5.9,
                "baseSeverity": "MEDIUM",
                "confidentialityImpact": "NONE",
                "integrityImpact": "NONE",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-407",
                  "description": "Inefficient Algorithmic Complexity",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-12-02T16:50:50.455Z",
            "orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
            "shortName": "VulnCheck"
          },
          "references": [
            {
              "tags": [
                "technical-description"
              ],
              "url": "https://github.com/ncalc/ncalc/blob/v7.4.0/src/NCalc.Core/Helpers/MathHelper.cs#L285-L301"
            },
            {
              "tags": [
                "issue-tracking"
              ],
              "url": "https://github.com/ncalc/ncalc/issues/639"
            },
            {
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ncalc/ncalc/commit/45349916ffa577936453e2aac619d0619de559a4"
            },
            {
              "name": "NCalc v7.5.0 Release Notes",
              "tags": [
                "release-notes"
              ],
              "url": "https://github.com/ncalc/ncalc/releases/tag/v7.5.0"
            },
            {
              "name": "VulnCheck Advisory: NCalc before 7.5.0 CPU Exhaustion via Unbounded Pow BigDecimal Computation",
              "tags": [
                "third-party-advisory"
              ],
              "url": "https://www.vulncheck.com/advisories/ncalc-before-7.5.0-cpu-exhaustion-via-unbounded-pow-bigdecimal-computation"
            }
          ],
          "title": "NCalc before 7.5.0 CPU Exhaustion via Unbounded Pow BigDecimal Computation",
          "x_generator": {
            "engine": "vulncheck-endgame"
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
        "assignerShortName": "VulnCheck",
        "cveId": "CVE-2026-142199",
        "datePublished": "2026-12-02T16:50:50.455Z",
        "dateReserved": "2026-12-02T15:28:38.081Z",
        "dateUpdated": "2026-12-02T16:50:50.455Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-142198 (GCVE-0-2026-142198)

    Vulnerability from nvd – Published: 2026-12-02 16:50 – Updated: 2026-12-02 22:40
    VLAI
    Title
    NCalc before 7.6.0 Uncontrolled Recursion Denial of Service via EvaluationVisitor
    Summary
    NCalc before 7.6.0 contains an uncontrolled recursion vulnerability that allows attackers to crash the host process by supplying long flat chains of operators. Attackers can submit an expression of a few thousand chained unary negation, factorial, or addition terms that recursively exhausts the thread stack in EvaluationVisitor, triggering an uncatchable StackOverflowException that terminates the application.
    SSVC
    Exploitation: none Automatable: yes Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-12-02 22:39 UTC
    CWE
    Assigner
    VulnCheck CNA under the mitre root
    CNA scorecard B 84/100 over 10107 records in the last 180 days details
    Impacted products
    Vendor Product Version
    ncalc NCalc Affected: 0 , < 7.6.0 (semver)
        cpe:2.3:a:ncalc:ncalc:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-25 00:00
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-142198",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "yes"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-12-02T22:39:51.303690Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-12-02T22:40:02.592Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "defaultStatus": "unaffected",
              "packageURL": "pkg:nuget/NCalc.Core",
              "product": "NCalc",
              "repo": "https://github.com/ncalc/ncalc",
              "vendor": "ncalc",
              "versions": [
                {
                  "lessThan": "7.6.0",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ncalc:ncalc:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "7.6.0",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Zachariah Mithani (AploSec)"
            }
          ],
          "datePublic": "2026-11-25T00:00:00.000Z",
          "descriptions": [
            {
              "lang": "en",
              "value": "NCalc before 7.6.0 contains an uncontrolled recursion vulnerability that allows attackers to crash the host process by supplying long flat chains of operators. Attackers can submit an expression of a few thousand chained unary negation, factorial, or addition terms that recursively exhausts the thread stack in EvaluationVisitor, triggering an uncatchable StackOverflowException that terminates the application."
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "attackComplexity": "LOW",
                "attackRequirements": "NONE",
                "attackVector": "NETWORK",
                "baseScore": 8.7,
                "baseSeverity": "HIGH",
                "privilegesRequired": "NONE",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "NONE",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "HIGH",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "NONE"
              },
              "format": "CVSS"
            },
            {
              "cvssV3_1": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "HIGH",
                "baseScore": 7.5,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "NONE",
                "integrityImpact": "NONE",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-674",
                  "description": "Uncontrolled Recursion",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-12-02T16:50:51.582Z",
            "orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
            "shortName": "VulnCheck"
          },
          "references": [
            {
              "tags": [
                "technical-description"
              ],
              "url": "https://github.com/ncalc/ncalc/blob/v7.5.0/src/NCalc.Core/Visitors/EvaluationVisitor.cs#L69-L74"
            },
            {
              "tags": [
                "issue-tracking",
                "patch"
              ],
              "url": "https://github.com/ncalc/ncalc/pull/657"
            },
            {
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ncalc/ncalc/commit/f1c03383ff87d7599b881713dd62fecaac1d4b8e"
            },
            {
              "name": "NCalc v7.6.0 Release Notes",
              "tags": [
                "release-notes"
              ],
              "url": "https://github.com/ncalc/ncalc/releases/tag/v7.6.0"
            },
            {
              "name": "VulnCheck Advisory: NCalc before 7.6.0 Uncontrolled Recursion Denial of Service via EvaluationVisitor",
              "tags": [
                "third-party-advisory"
              ],
              "url": "https://www.vulncheck.com/advisories/ncalc-before-7.6.0-uncontrolled-recursion-denial-of-service-via-evaluationvisitor"
            }
          ],
          "title": "NCalc before 7.6.0 Uncontrolled Recursion Denial of Service via EvaluationVisitor",
          "x_generator": {
            "engine": "vulncheck-endgame"
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
        "assignerShortName": "VulnCheck",
        "cveId": "CVE-2026-142198",
        "datePublished": "2026-12-02T16:50:51.582Z",
        "dateReserved": "2026-12-02T15:28:37.718Z",
        "dateUpdated": "2026-12-02T22:40:02.592Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-55254 (GCVE-0-2026-55254)

    Vulnerability from nvd – Published: 2026-07-17 19:55 – Updated: 2026-07-20 18:07
    VLAI
    Title
    NCalc: Denial of Service via Unbounded and Non-Terminating Factorial Evaluation
    Summary
    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.
    SSVC
    Exploitation: none Automatable: no Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-07-20 18:06 UTC
    CWE
    • CWE-770 - Allocation of Resources Without Limits or Throttling
    • CWE-190 - Integer Overflow or Wraparound
    Assigner
    GitHub_M CNA under the mitre root
    CNA scorecard C 72/100 over 7940 records in the last 180 days details
    Impacted products
    Vendor Product Version
    ncalc ncalc Affected: < 6.1.1
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-55254",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-07-20T18:06:03.191078Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-07-20T18:07:31.078Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "product": "ncalc",
              "vendor": "ncalc",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003c 6.1.1"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "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."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "attackComplexity": "HIGH",
                "attackVector": "ADJACENT_NETWORK",
                "availabilityImpact": "HIGH",
                "baseScore": 4.8,
                "baseSeverity": "MEDIUM",
                "confidentialityImpact": "NONE",
                "integrityImpact": "NONE",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "REQUIRED",
                "vectorString": "CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H",
                "version": "3.1"
              }
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-770",
                  "description": "CWE-770: Allocation of Resources Without Limits or Throttling",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            },
            {
              "descriptions": [
                {
                  "cweId": "CWE-190",
                  "description": "CWE-190: Integer Overflow or Wraparound",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-07-17T19:55:16.728Z",
            "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
            "shortName": "GitHub_M"
          },
          "references": [
            {
              "name": "https://github.com/ncalc/ncalc/security/advisories/GHSA-3w5p-95mh-gq75",
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://github.com/ncalc/ncalc/security/advisories/GHSA-3w5p-95mh-gq75"
            },
            {
              "name": "https://github.com/ncalc/ncalc/pull/575",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/ncalc/ncalc/pull/575"
            },
            {
              "name": "https://github.com/ncalc/ncalc/commit/eeb6155ee1899b1fdf2cda3da35a4f0ca93ffd6a",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/ncalc/ncalc/commit/eeb6155ee1899b1fdf2cda3da35a4f0ca93ffd6a"
            },
            {
              "name": "https://github.com/ncalc/ncalc/releases/tag/v6.1.1",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/ncalc/ncalc/releases/tag/v6.1.1"
            }
          ],
          "source": {
            "advisory": "GHSA-3w5p-95mh-gq75",
            "discovery": "UNKNOWN"
          },
          "title": "NCalc: Denial of Service via Unbounded and Non-Terminating Factorial Evaluation"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "cveId": "CVE-2026-55254",
        "datePublished": "2026-07-17T19:55:16.728Z",
        "dateReserved": "2026-06-16T16:44:00.625Z",
        "dateUpdated": "2026-07-20T18:07:31.078Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-142198 (GCVE-0-2026-142198)

    Vulnerability from cvelistv5 – Published: 2026-12-02 16:50 – Updated: 2026-12-02 22:40
    VLAI
    Title
    NCalc before 7.6.0 Uncontrolled Recursion Denial of Service via EvaluationVisitor
    Summary
    NCalc before 7.6.0 contains an uncontrolled recursion vulnerability that allows attackers to crash the host process by supplying long flat chains of operators. Attackers can submit an expression of a few thousand chained unary negation, factorial, or addition terms that recursively exhausts the thread stack in EvaluationVisitor, triggering an uncatchable StackOverflowException that terminates the application.
    SSVC
    Exploitation: none Automatable: yes Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-12-02 22:39 UTC
    CWE
    Assigner
    VulnCheck CNA under the mitre root
    CNA scorecard B 84/100 over 10107 records in the last 180 days details
    Impacted products
    Vendor Product Version
    ncalc NCalc Affected: 0 , < 7.6.0 (semver)
        cpe:2.3:a:ncalc:ncalc:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-25 00:00
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-142198",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "yes"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-12-02T22:39:51.303690Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-12-02T22:40:02.592Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "defaultStatus": "unaffected",
              "packageURL": "pkg:nuget/NCalc.Core",
              "product": "NCalc",
              "repo": "https://github.com/ncalc/ncalc",
              "vendor": "ncalc",
              "versions": [
                {
                  "lessThan": "7.6.0",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ncalc:ncalc:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "7.6.0",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Zachariah Mithani (AploSec)"
            }
          ],
          "datePublic": "2026-11-25T00:00:00.000Z",
          "descriptions": [
            {
              "lang": "en",
              "value": "NCalc before 7.6.0 contains an uncontrolled recursion vulnerability that allows attackers to crash the host process by supplying long flat chains of operators. Attackers can submit an expression of a few thousand chained unary negation, factorial, or addition terms that recursively exhausts the thread stack in EvaluationVisitor, triggering an uncatchable StackOverflowException that terminates the application."
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "attackComplexity": "LOW",
                "attackRequirements": "NONE",
                "attackVector": "NETWORK",
                "baseScore": 8.7,
                "baseSeverity": "HIGH",
                "privilegesRequired": "NONE",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "NONE",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "HIGH",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "NONE"
              },
              "format": "CVSS"
            },
            {
              "cvssV3_1": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "HIGH",
                "baseScore": 7.5,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "NONE",
                "integrityImpact": "NONE",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-674",
                  "description": "Uncontrolled Recursion",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-12-02T16:50:51.582Z",
            "orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
            "shortName": "VulnCheck"
          },
          "references": [
            {
              "tags": [
                "technical-description"
              ],
              "url": "https://github.com/ncalc/ncalc/blob/v7.5.0/src/NCalc.Core/Visitors/EvaluationVisitor.cs#L69-L74"
            },
            {
              "tags": [
                "issue-tracking",
                "patch"
              ],
              "url": "https://github.com/ncalc/ncalc/pull/657"
            },
            {
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ncalc/ncalc/commit/f1c03383ff87d7599b881713dd62fecaac1d4b8e"
            },
            {
              "name": "NCalc v7.6.0 Release Notes",
              "tags": [
                "release-notes"
              ],
              "url": "https://github.com/ncalc/ncalc/releases/tag/v7.6.0"
            },
            {
              "name": "VulnCheck Advisory: NCalc before 7.6.0 Uncontrolled Recursion Denial of Service via EvaluationVisitor",
              "tags": [
                "third-party-advisory"
              ],
              "url": "https://www.vulncheck.com/advisories/ncalc-before-7.6.0-uncontrolled-recursion-denial-of-service-via-evaluationvisitor"
            }
          ],
          "title": "NCalc before 7.6.0 Uncontrolled Recursion Denial of Service via EvaluationVisitor",
          "x_generator": {
            "engine": "vulncheck-endgame"
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
        "assignerShortName": "VulnCheck",
        "cveId": "CVE-2026-142198",
        "datePublished": "2026-12-02T16:50:51.582Z",
        "dateReserved": "2026-12-02T15:28:37.718Z",
        "dateUpdated": "2026-12-02T22:40:02.592Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-142199 (GCVE-0-2026-142199)

    Vulnerability from cvelistv5 – Published: 2026-12-02 16:50 – Updated: 2026-12-02 16:50
    VLAI
    Title
    NCalc before 7.5.0 CPU Exhaustion via Unbounded Pow BigDecimal Computation
    Summary
    NCalc before 7.5.0 contains an uncontrolled resource consumption vulnerability in MathHelper.Pow that allows attackers to exhaust CPU by supplying uncapped exponents with decimal operands. Attackers can submit expressions like Pow with a decimal base and huge exponent to hold server threads for seconds to hours, exhausting CPU and worker threads.
    CWE
    • CWE-407 - Inefficient Algorithmic Complexity
    Assigner
    VulnCheck CNA under the mitre root
    CNA scorecard B 84/100 over 10107 records in the last 180 days details
    Impacted products
    Vendor Product Version
    ncalc NCalc Affected: 0 , < 7.5.0 (semver)
        cpe:2.3:a:ncalc:ncalc:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-11-13 00:00
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "defaultStatus": "unaffected",
              "packageURL": "pkg:nuget/NCalc.Core",
              "product": "NCalc",
              "repo": "https://github.com/ncalc/ncalc",
              "vendor": "ncalc",
              "versions": [
                {
                  "lessThan": "7.5.0",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ncalc:ncalc:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "7.5.0",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Zachariah Mithani (AploSec)"
            }
          ],
          "datePublic": "2026-11-13T00:00:00.000Z",
          "descriptions": [
            {
              "lang": "en",
              "value": "NCalc before 7.5.0 contains an uncontrolled resource consumption vulnerability in MathHelper.Pow that allows attackers to exhaust CPU by supplying uncapped exponents with decimal operands. Attackers can submit expressions like Pow with a decimal base and huge exponent to hold server threads for seconds to hours, exhausting CPU and worker threads."
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "attackComplexity": "HIGH",
                "attackRequirements": "PRESENT",
                "attackVector": "NETWORK",
                "baseScore": 8.2,
                "baseSeverity": "HIGH",
                "privilegesRequired": "NONE",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "NONE",
                "vectorString": "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "HIGH",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "NONE"
              },
              "format": "CVSS"
            },
            {
              "cvssV3_1": {
                "attackComplexity": "HIGH",
                "attackVector": "NETWORK",
                "availabilityImpact": "HIGH",
                "baseScore": 5.9,
                "baseSeverity": "MEDIUM",
                "confidentialityImpact": "NONE",
                "integrityImpact": "NONE",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-407",
                  "description": "Inefficient Algorithmic Complexity",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-12-02T16:50:50.455Z",
            "orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
            "shortName": "VulnCheck"
          },
          "references": [
            {
              "tags": [
                "technical-description"
              ],
              "url": "https://github.com/ncalc/ncalc/blob/v7.4.0/src/NCalc.Core/Helpers/MathHelper.cs#L285-L301"
            },
            {
              "tags": [
                "issue-tracking"
              ],
              "url": "https://github.com/ncalc/ncalc/issues/639"
            },
            {
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ncalc/ncalc/commit/45349916ffa577936453e2aac619d0619de559a4"
            },
            {
              "name": "NCalc v7.5.0 Release Notes",
              "tags": [
                "release-notes"
              ],
              "url": "https://github.com/ncalc/ncalc/releases/tag/v7.5.0"
            },
            {
              "name": "VulnCheck Advisory: NCalc before 7.5.0 CPU Exhaustion via Unbounded Pow BigDecimal Computation",
              "tags": [
                "third-party-advisory"
              ],
              "url": "https://www.vulncheck.com/advisories/ncalc-before-7.5.0-cpu-exhaustion-via-unbounded-pow-bigdecimal-computation"
            }
          ],
          "title": "NCalc before 7.5.0 CPU Exhaustion via Unbounded Pow BigDecimal Computation",
          "x_generator": {
            "engine": "vulncheck-endgame"
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
        "assignerShortName": "VulnCheck",
        "cveId": "CVE-2026-142199",
        "datePublished": "2026-12-02T16:50:50.455Z",
        "dateReserved": "2026-12-02T15:28:38.081Z",
        "dateUpdated": "2026-12-02T16:50:50.455Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-55254 (GCVE-0-2026-55254)

    Vulnerability from cvelistv5 – Published: 2026-07-17 19:55 – Updated: 2026-07-20 18:07
    VLAI
    Title
    NCalc: Denial of Service via Unbounded and Non-Terminating Factorial Evaluation
    Summary
    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.
    SSVC
    Exploitation: none Automatable: no Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-07-20 18:06 UTC
    CWE
    • CWE-770 - Allocation of Resources Without Limits or Throttling
    • CWE-190 - Integer Overflow or Wraparound
    Assigner
    GitHub_M CNA under the mitre root
    CNA scorecard C 72/100 over 7940 records in the last 180 days details
    Impacted products
    Vendor Product Version
    ncalc ncalc Affected: < 6.1.1
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-55254",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-07-20T18:06:03.191078Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-07-20T18:07:31.078Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "product": "ncalc",
              "vendor": "ncalc",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003c 6.1.1"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "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."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "attackComplexity": "HIGH",
                "attackVector": "ADJACENT_NETWORK",
                "availabilityImpact": "HIGH",
                "baseScore": 4.8,
                "baseSeverity": "MEDIUM",
                "confidentialityImpact": "NONE",
                "integrityImpact": "NONE",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "REQUIRED",
                "vectorString": "CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H",
                "version": "3.1"
              }
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-770",
                  "description": "CWE-770: Allocation of Resources Without Limits or Throttling",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            },
            {
              "descriptions": [
                {
                  "cweId": "CWE-190",
                  "description": "CWE-190: Integer Overflow or Wraparound",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-07-17T19:55:16.728Z",
            "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
            "shortName": "GitHub_M"
          },
          "references": [
            {
              "name": "https://github.com/ncalc/ncalc/security/advisories/GHSA-3w5p-95mh-gq75",
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://github.com/ncalc/ncalc/security/advisories/GHSA-3w5p-95mh-gq75"
            },
            {
              "name": "https://github.com/ncalc/ncalc/pull/575",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/ncalc/ncalc/pull/575"
            },
            {
              "name": "https://github.com/ncalc/ncalc/commit/eeb6155ee1899b1fdf2cda3da35a4f0ca93ffd6a",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/ncalc/ncalc/commit/eeb6155ee1899b1fdf2cda3da35a4f0ca93ffd6a"
            },
            {
              "name": "https://github.com/ncalc/ncalc/releases/tag/v6.1.1",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/ncalc/ncalc/releases/tag/v6.1.1"
            }
          ],
          "source": {
            "advisory": "GHSA-3w5p-95mh-gq75",
            "discovery": "UNKNOWN"
          },
          "title": "NCalc: Denial of Service via Unbounded and Non-Terminating Factorial Evaluation"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "cveId": "CVE-2026-55254",
        "datePublished": "2026-07-17T19:55:16.728Z",
        "dateReserved": "2026-06-16T16:44:00.625Z",
        "dateUpdated": "2026-07-20T18:07:31.078Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    FKIE_CVE-2026-55254

    Vulnerability from fkie_nvd - Published: 2026-07-17 20:17 - Updated: 2026-08-18 15:44
    Summary
    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.
    Impacted products
    Vendor Product Version
    ncalc ncalc *

    {
      "affected": [
        {
          "affectedData": [
            {
              "product": "ncalc",
              "vendor": "ncalc",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003c 6.1.1"
                }
              ]
            }
          ],
          "source": "security-advisories@github.com"
        }
      ],
      "configurations": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:a:ncalc:ncalc:*:*:*:*:*:*:*:*",
                  "matchCriteriaId": "4324B778-60F1-4BA5-B868-F54B638D257E",
                  "versionEndExcluding": "6.1.1",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "cveTags": [],
      "descriptions": [
        {
          "lang": "en",
          "value": "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."
        }
      ],
      "id": "CVE-2026-55254",
      "lastModified": "2026-08-18T15:44:07.357",
      "metrics": {
        "cvssMetricV31": [
          {
            "cvssData": {
              "attackComplexity": "HIGH",
              "attackVector": "ADJACENT_NETWORK",
              "availabilityImpact": "HIGH",
              "baseScore": 4.8,
              "baseSeverity": "MEDIUM",
              "confidentialityImpact": "NONE",
              "integrityImpact": "NONE",
              "privilegesRequired": "NONE",
              "scope": "UNCHANGED",
              "userInteraction": "REQUIRED",
              "vectorString": "CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H",
              "version": "3.1"
            },
            "exploitabilityScore": 1.2,
            "impactScore": 3.6,
            "source": "security-advisories@github.com",
            "type": "Secondary"
          },
          {
            "cvssData": {
              "attackComplexity": "LOW",
              "attackVector": "ADJACENT_NETWORK",
              "availabilityImpact": "HIGH",
              "baseScore": 6.5,
              "baseSeverity": "MEDIUM",
              "confidentialityImpact": "NONE",
              "integrityImpact": "NONE",
              "privilegesRequired": "NONE",
              "scope": "UNCHANGED",
              "userInteraction": "NONE",
              "vectorString": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
              "version": "3.1"
            },
            "exploitabilityScore": 2.8,
            "impactScore": 3.6,
            "source": "nvd@nist.gov",
            "type": "Primary"
          }
        ],
        "ssvcV203": [
          {
            "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
            "ssvcData": {
              "id": "CVE-2026-55254",
              "options": [
                {
                  "exploitation": "none"
                },
                {
                  "automatable": "no"
                },
                {
                  "technicalImpact": "partial"
                }
              ],
              "role": "CISA Coordinator",
              "timestamp": "2026-07-20T18:06:03.191078Z",
              "version": "2.0.3"
            }
          }
        ]
      },
      "published": "2026-07-17T20:17:27.023",
      "references": [
        {
          "source": "security-advisories@github.com",
          "tags": [
            "Patch"
          ],
          "url": "https://github.com/ncalc/ncalc/commit/eeb6155ee1899b1fdf2cda3da35a4f0ca93ffd6a"
        },
        {
          "source": "security-advisories@github.com",
          "tags": [
            "Issue Tracking",
            "Patch"
          ],
          "url": "https://github.com/ncalc/ncalc/pull/575"
        },
        {
          "source": "security-advisories@github.com",
          "tags": [
            "Product",
            "Release Notes"
          ],
          "url": "https://github.com/ncalc/ncalc/releases/tag/v6.1.1"
        },
        {
          "source": "security-advisories@github.com",
          "tags": [
            "Patch",
            "Vendor Advisory"
          ],
          "url": "https://github.com/ncalc/ncalc/security/advisories/GHSA-3w5p-95mh-gq75"
        }
      ],
      "sourceIdentifier": "security-advisories@github.com",
      "vulnStatus": "Analyzed",
      "weaknesses": [
        {
          "description": [
            {
              "lang": "en",
              "value": "CWE-190"
            },
            {
              "lang": "en",
              "value": "CWE-770"
            }
          ],
          "source": "security-advisories@github.com",
          "type": "Secondary"
        }
      ]
    }