Description
Scriban before 6.6.0 contains an uncontrolled recursion vulnerability in its recursive-descent parser. The parser does not enforce a default expression depth limit (the ExpressionDepthLimit property in ParserOptions defaults to null/disabled), so an attacker who controls template input can supply a deeply nested template (e.g., thousands of nested parentheses or blocks) that exhausts thread stack space and raises a StackOverflowException. Because a StackOverflowException cannot be caught in .NET, this causes immediate, unrecoverable termination of the hosting process, resulting in a denial of service. Applications that process untrusted or user-supplied templates can be exploited remotely without authentication.
Published: 2026-08-16
Score: 8.7 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Scriban before version 6.6.0 contains an uncontrolled recursion vulnerability in its recursive‑descent parser. The parser does not enforce a default expression depth limit, so an attacker who controls template input can supply an arbitrarily deep template that triggers a StackOverflowException. Because .NET cannot catch this exception, the hosting process terminates immediately, resulting in a definitive denial of service. The weakness is identified as CWE‑674.

Affected Systems

The affected software is Scriban (scriban:scriban) in all releases prior to 6.6.0. Any application that processes untrusted or user‑supplied templates with these versions is vulnerable.

Risk and Exploitability

The CVSS score of 8.7 indicates high severity and the EPSS score is not reported, so the exact likelihood of exploitation is uncertain but potentially significant. The vulnerability can be triggered remotely without authentication by providing a deeply nested template, causing an immediate, unrecoverable crash of the process. The issue is not listed in the CISA KEV catalog.

Generated by OpenCVE AI on August 16, 2026 at 14:37 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Scriban to version 6.6.0 or later.
  • If an upgrade is not possible, configure ParserOptions.ExpressionDepthLimit to a reasonable value to constrain recursion depth.
  • Validate or sanitize template input, or run the template engine in a separate sandboxed process to contain any potential crashes.

Generated by OpenCVE AI on August 16, 2026 at 14:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 16 Aug 2026 13:30:00 +0000

Type Values Removed Values Added
Description Scriban before 6.6.0 contains an uncontrolled recursion vulnerability in its recursive-descent parser. The parser does not enforce a default expression depth limit (the ExpressionDepthLimit property in ParserOptions defaults to null/disabled), so an attacker who controls template input can supply a deeply nested template (e.g., thousands of nested parentheses or blocks) that exhausts thread stack space and raises a StackOverflowException. Because a StackOverflowException cannot be caught in .NET, this causes immediate, unrecoverable termination of the hosting process, resulting in a denial of service. Applications that process untrusted or user-supplied templates can be exploited remotely without authentication.
Title Scriban before 6.6.0 Denial of Service via Uncontrolled Recursion
Weaknesses CWE-674
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 8.7, 'vector': '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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-16T13:14:17.698Z

Reserved: 2026-08-16T12:59:42.222Z

Link: CVE-2026-74795

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-16T14:16:57.590

Modified: 2026-08-16T14:16:57.590

Link: CVE-2026-74795

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-16T14:45:04Z

Weaknesses