CVE-2026-142198: NCalc before 7.6.0 Uncontrolled Recursion Denial of Service via EvaluationVisitor

Published Dec 2, 2026
·
Updated

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.

Affected Software

1 affected component
nuget/NCalc<7.6.0

Event History

Dec 2, 2026
CVE Published
via MITRE·04:50 PM
Data Sourced
via MITRE·04:50 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed?

Applications using NCalc versions before 7.6.0 are exposed when an attacker can supply expressions for evaluation. The affected input includes long flat chains of unary negation, factorial, or addition operators.

2

Does exploitation require authentication or user interaction?

No. The supplied vector indicates network access with no privileges required and no user interaction.

3

What is the operational impact of a successful attack?

A crafted expression can exhaust the thread stack in EvaluationVisitor and cause an uncatchable StackOverflowException. This terminates the host application process, producing a denial of service; the provided impact data indicates availability impact only.

4

What should be done if this component is in use?

Update NCalc to version 7.6.0 or later. Until updating is possible, restrict untrusted users from submitting expressions for evaluation, particularly expressions containing very long operator chains.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203