HackerFeeds
All CVEs

CVE-2026-142198: NCalc Uncontrolled Recursion

HIGH7.5

Published 2026-12-02 · Updated 2026-12-04 · Source disclosure@vulncheck.com

Not known to be exploited · high severity — update NCalc to 7.6.0 or later in your next patch cycle.

What to do

  1. Update NCalc to version 7.6.0 or later. Versions before 7.6.0 are affected.
  2. Until it is patched, do not leave NCalc reachable from the internet or other untrusted networks; restrict access by firewall, VPN or allow-list.
  3. Limit input size and nesting depth in front of the affected component.

Affected and fixed versions

ProductAffectedFixed in
NCalc< 7.6.07.6.0

Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.

How it can be exploited

It can be exploited remotely over the network; the attacker does not need an account, and no action by a victim is required. Attack complexity is low, so a working exploit is expected to be reliable. The impact on availability is rated high.

CVSS 3.1 metrics for CVE-2026-142198
Attack vectorNetworkIt can be exploited remotely over the network.
Attack complexityLowNo special conditions are needed; the attack is repeatable.
Privileges requiredNoneThe attacker does not need an account.
User interactionNoneNo action by a victim is needed.
ConfidentialityNoneNo effect on confidentiality.
IntegrityNoneNo effect on integrity.
AvailabilityHighTotal loss of availability.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Weakness: Uncontrolled Recursion

Deeply nested input exhausts the stack and crashes the process.

Classified as CWE-674.

Description

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.

Advisory text as published in the NVD record.

View on NVD