Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted Scriban template to rendering endpoint
-
ExploitTrigger unguarded recursion (postfix chain, array compare, or object.eval)
-
ImpactUncatchable StackOverflowException terminates host process
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
|
| Exploitation Conditions | The only prerequisite is that the host application must parse or render attacker-influenced Scriban (or Liquid via ParseLiquid) templates, or pass attacker-controlled strings to object.eval / object.eval_template - the 'untrusted template' scenario the library is designed for. No special host configuration is required: default ParserOptions and a stock new TemplateContext() are vulnerable, and the documented safety limits (ExpressionDepthLimit 250, RecursiveLimit 100, ObjectRecursionLimit 20) do not stop any of the three paths. What LIMITS real-world exposure: deployments that only ever render trusted, developer-authored templates are not reachable by an outside attacker; the impact is confined to availability (process crash, recoverable by restart) with no data exposure; and worker threads with smaller stacks crash with even smaller inputs. Affected versions are <= 7.5.2; upgrading to 7.5.3 is the fix. |
| Impact | The CVSS 4.0 base score is 8.7 (High) with vector AV:N/AC:L/AT:N/PR:N/UI:N and VA:H, and the GHSA advisory independently scores it CVSS 3.1 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) - the two scores agree on the shape of the flaw: network-reachable, low-complexity, no privileges, no user interaction, and availability-only impact (C:N/I:N / VC:N/VI:N). Per the CVSS vector (PR:N) the issue is unauthenticated, but effective exploitation has a real precondition the vector does not capture: the host application must actually render or evaluate attacker-influenced templates (or pass attacker strings to object.eval/object.eval_template). This is precisely the 'safe runtime for untrusted templates' use case Scriban advertises, which makes the documented mitigations (ExpressionDepthLimit 250, RecursiveLimit 100, ObjectRecursionLimit 20) a source of false assurance since all three are bypassed. VulnCheck's priority decision is 'this_week' - not act_now or emergency - consistent with a serious but availability-only defect. It is not in CISA KEV, so there is no confirmed active exploitation; EPSS is not provided in the input, so probabilistic exploitation likelihood is unknown and cannot be weighed. A working proof-of-concept (crashing template snippets) is published in the GHSA advisory, which lowers the barrier to opportunistic abuse. Net: a genuine priority for multi-tenant or internet-facing services that render user-supplied templates - where a single few-KB (or sub-60-byte) request kills the whole process and every co-tenant - but materially lower risk for deployments that only render trusted, developer-authored templates. Impact is denial of service recoverable by process restart, with no path to data exposure or code execution shown in the evidence. |
| Exploit ScenarioDerived | An application that renders attacker-supplied Scriban templates (e.g. a report/theme/notification builder marketed on Scriban's 'safe' sandbox) receives a single crafted template - a ~4 KB postfix chain like '{{ x={}; x.a.a.a… }}', or an under-60-byte self-referential array comparison or self-evaluating object.eval string. Parsing succeeds (HasErrors == false) and evaluation recurses once per link until the thread's stack is exhausted, raising a StackOverflowException that .NET cannot catch and that bypasses every TemplateContext limit and CancellationToken. The host process terminates, taking all other requests and tenants with it, and a public PoC for each path is included in the vendor advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 08, 2026
Uncontrolled recursion in the Scriban templating engine (NuGet packages Scriban and Scriban.Signed through 7.5.2) lets unauthenticated remote attackers terminate the entire host process by supplying a single small template. Three template-only paths - deep postfix member/indexer/call chains that bypass ParserOptions.ExpressionDepthLimit, self-referential or ~450-level-deep array comparisons with no depth or cycle guard, and self-evaluating strings passed to object.eval / object.eval_template that bypass RecursiveLimit - all raise a StackOverflowException that cannot be caught in .NET, so exception handlers, CancellationToken and every TemplateContext limit are useless and recovery requires a process restart. Default ParserOptions and a stock new TemplateContext() are vulnerable; the risk is confined to hosts that parse or render attacker-influenced templates (or feed attacker strings to object.eval), and is availability-only with no data exposure. A public proof-of-concept is included in the vendor's GHSA advisory; there is no indication of CISA KEV-listed active exploitation at time of analysis, and upgrading to 7.5.3 is the fix.
RemediationAI
Vendor-released patch: upgrade the NuGet packages Scriban and Scriban.Signed to 7.5.3, which adds EnterExpression/LeaveExpression accounting to the postfix loops, enforces ObjectRecursionLimit with cycle detection in ScriptArray.CompareTo, and wraps object.eval / object.eval_template in EnterRecursive/ExitRecursive so the documented limits finally apply (advisory: https://github.com/scriban/scriban/security/advisories/GHSA-mvmw-9jxc-7pr2). Because the documented ExpressionDepthLimit, RecursiveLimit and ObjectRecursionLimit values are ineffective on 7.5.2 and earlier, tuning them is not a workaround. Compensating controls until the upgrade lands: do not parse or render templates from untrusted sources and do not pass attacker-controlled strings into object.eval or object.eval_template, which removes the only exploitation prerequisite but rules out the untrusted-template use case entirely; keep template rendering in a sandboxed, restartable worker process with a supervise/restart loop and tightly scoped worker-thread stack sizes so a crash is contained to availability of that worker rather than the whole host - noting this reduces blast radius without preventing the crash, and smaller stacks actually lower the input size needed to trigger it. As defence in depth the advisory suggests calling RuntimeHelpers.EnsureSufficientExecutionStack (or TryEnsureSufficientExecutionStack) in the recursive evaluation entry points (member/indexer GetValue, function call, CompareTo, printer/rewriter visit) and converting InsufficientExecutionStackException into a catchable ScriptRuntimeException, which closes the family rather than one node type at a time but carries a per-call overhead on deep legitimate templates.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Scriban is a .NET text templating engine (including a Liquid-compatible parser via Template.ParseLiquid) whose documented safety controls for untrusted templates are ParserOptions.ExpressionDepthLimit (default 250), RecursiveLimit (100) and ObjectRecursionLimit (20). This is CWE-674 (Uncontrolled Recursion), and the root cause is that three recursive evaluation paths never consult those controls. First, the member, indexer and explicit-call postfix loops in src/Scriban/Parsing/Parser.Expressions.cs build an N-deep AST iteratively without calling EnterExpression(), so chain length never counts against ExpressionDepthLimit (unlike the binary-operator path); evaluation then recurses once per link through ScriptMemberExpression.GetTargetObject and TemplateContext.GetValue/GetOrSetValue, and ScriptPrinter (ToText()) and ScriptRewriter/ScriptFormatter recurse over the same AST unguarded. Second, ScriptArray.CompareTo compares elements through ScriptBinaryExpression.Evaluate with no depth limit, no ObjectRecursionLimit check and no cycle detection, so ==, !=, <, <=, > or >= on a self-referential array or two arrays roughly 450 levels deep overflows the stack - whereas printing, object.to_json, array.join, array.compact and string concatenation on the same cyclic array do throw the catchable 'Structure is too deeply nested or contains reference loops' error. Third, ObjectFunctions.Eval and EvalTemplate parse and evaluate a nested page without context.EnterRecursive, so a string that evaluates itself recurses until the stack is exhausted; their catch blocks then run exception dispatch on an almost-full stack. In every case .NET cannot catch StackOverflowException, so the failure takes down the whole process.
Know when Scriban gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
A single crafted template over the network with no auth or interaction against default config triggers an uncatchable stack overflow; impact is availability-only process termination, so A:H and C:N/I:N.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Scriban and Scriban.Signed before 7.5.3 contain uncontrolled recursion flaws in which postfix member, indexer, and call chains bypass ExpressionDepthLimit, array comparison lacks depth and cycle checks, and object.eval bypasses RecursiveLimit. Attackers who can supply templates can trigger an uncatchable StackOverflowException that terminates the host process.
Technical POC Analysis
CWE-674 (Uncontrolled Recursion).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-124439 is a high-severity availability vulnerability in the Scriban templating library (versions through 7.5.2) that allows an unauthenticated remote attacker to crash the entire application process using a single small template. Any service that parses or renders attacker-influenced templates, or passes untrusted strings to object.eval, is affected. This can cause complete service disruption, requiring a process restart and potentially leading to extended outages and customer impact.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Arbitrary CLR property writes in Scriban (the .NET templating engine) before 7.2.2 allow template code to mutate live ho
Sandbox escape in the Scriban .NET templating engine (all versions before 7.0.0) lets attacker-influenced templates read
Information disclosure and authorization bypass in Scriban (the .NET text templating engine) before 7.0.0 lets attackers
Scriban through 7.5.1 exposes the .NET objects behind imported function values, letting a template author read members s
Memory exhaustion denial of service in the Scriban .NET templating engine through 7.5.3 (both the Scriban and Scriban.Si
Memory exhaustion in Scriban before 7.6.0 lets anyone who can supply template source render a roughly 2 KB template that
Unauthenticated, network-reachable denial of service in Scriban through 7.5.3 (including the Scriban.Signed distribution
Memory and CPU exhaustion in the Scriban .NET templating engine (NuGet packages Scriban and Scriban.Signed, versions up
Scriban template engine versions 3.0.0 through 7.2.5 expose any application accepting untrusted templates to complete CP
Uncontrolled resource consumption in Scriban's .NET templating engine allows any party who can submit template input to
Remote denial of service in Scriban before 6.6.0 allows unauthenticated attackers to crash the entire .NET hosting proce
Process-terminating stack overflow in Scriban's template parser affects all versions before 7.0.0, allowing any attacker
EUVD-2026-119561
GHSA-42c9-wc59-xmx4
NVD
CVE.org
EPSS
Exploit-DB