{"id":"CVE-2026-142198","summary":"NCalc before 7.6.0 Uncontrolled Recursion Denial of Service via EvaluationVisitor","details":"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.","modified":"2026-12-02T23:45:53.124870998Z","published":"2026-12-02T16:50:51.582Z","database_specific":{"cwe_ids":["CWE-674"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142198.json","unresolved_ranges":[{"extracted_events":[{"range":[{"fixed":"7.6.0"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"}]},{"extracted_events":[{"range":[{"fixed":"7.6.0"}],"source":"CPE_FIELD","strategy":"CPEApplicability"}]},{"extracted_events":[{"range":[{"fixed":"7.6.0"}],"source":"DESCRIPTION"}]}],"cna_assigner":"VulnCheck"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142198.json"},{"type":"PACKAGE","url":"https://github.com/ncalc/ncalc"},{"type":"ARTICLE","url":"https://github.com/ncalc/ncalc/blob/v7.5.0/src/NCalc.Core/Visitors/EvaluationVisitor.cs#L69-L74"},{"type":"FIX","url":"https://github.com/ncalc/ncalc/commit/f1c03383ff87d7599b881713dd62fecaac1d4b8e"},{"type":"FIX","url":"https://github.com/ncalc/ncalc/pull/657"},{"type":"ADVISORY","url":"https://github.com/ncalc/ncalc/releases/tag/v7.6.0"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142198"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/ncalc-before-7.6.0-uncontrolled-recursion-denial-of-service-via-evaluationvisitor"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ncalc/ncalc","events":[{"introduced":"0"},{"fixed":"f1c03383ff87d7599b881713dd62fecaac1d4b8e"},{"fixed":"4af67e938992d5fbe018b184bb83f6c64d4bec7c"}],"database_specific":{"extracted_events":[{"range":[{"fixed":"f1c03383ff87d7599b881713dd62fecaac1d4b8e"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_TAG","original_tag":"v7.6.0","range":[{"fixed":"4af67e938992d5fbe018b184bb83f6c64d4bec7c"}]}]}}],"versions":["v5.10.0","v5.2.5","v5.2.3","5.2.1","v4.2.0","v4.0.0","v3.13.1","v2.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142198.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}