Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted Scriban template to host
-
DeliveryInvoke unguarded builtin or recursive construct
-
ExploitBypass LimitToString / LoopLimit / CancellationToken guards
-
ExecutionExhaust host memory or pin CPU
-
ImpactDenial of service for all co-hosted tenants
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the host parses and renders Scriban templates supplied by an untrusted author, using a default TemplateContext - the advisory confirms nothing needs to be exposed by the host and templates can be under 100 characters. The primary limiting factor is this deployment model: hosts that render only trusted/first-party templates are not exposed. No authentication or user interaction is required at the Scriban layer (PR:N/UI:N), and the affected range is Scriban <= 7.5.2. Notably, the usual defensive controls are insufficient: LimitToString allocation guards are skipped by math.format, object.format, regex.replace, string.escape, regex.escape and (for the pre-allocation spike) string.replace; and LoopLimit plus the documented CancellationToken do NOT bound the exponential ScriptArray.CompareTo comparison, uncapped BigInteger multiplication, or in-statement expression evaluation, so even operators relying on a cancellation token for CPU control can be defeated. |
| Impact | All impact signals point in one direction: this is a pure availability flaw (CWE-400/770/1333, resource exhaustion) with no confidentiality or integrity component. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N, VA:H, score 8.7) and the vendor's own CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, score 7.5) agree: network-reachable, low-complexity, no privileges or user interaction, high availability impact only. The real-world risk is tightly scoped by one deployment precondition the CVSS vector does not express - the host must accept and render Scriban templates authored by untrusted parties. For any host that does (multi-tenant SaaS, user-supplied report/email templates), the risk is acute: the GHSA advisory documents sub-100-character templates causing 1-21 GB allocations or pinning a CPU core for hours, and crucially shows that the documented CancellationToken mitigation does NOT stop several CPU paths (shared-structure array comparison, BigInteger multiplication, in-statement expression evaluation). The vuln.today decision label is 'this_week' (not act_now/emergency), consistent with a serious but non-RCE DoS. No EPSS score and no KEV listing were provided, and there is no evidence of active exploitation; however, the GHSA advisory publishes concrete, measured proof-of-concept templates and host code, so a working trigger is public. Net: a genuine priority for anyone rendering untrusted Scriban templates, and effectively a non-issue for hosts that only render trusted/first-party templates. |
| Exploit ScenarioDerived | An attacker who can submit a Scriban template to a multi-tenant host (e.g. a user-customizable report, email, or page template) sends a tiny template such as host, so no special tooling is required. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 08, 2026
Memory and CPU exhaustion in the Scriban .NET templating engine (NuGet packages Scriban and Scriban.Signed, versions up to and including 7.5.2) lets an untrusted template author crash or stall a multi-tenant host with templates under 100 characters rendered under a default TemplateContext. The advertised defenses are bypassed: math.format, object.format, regex.replace, string.escape and regex.escape skip the LimitToString allocation guard, producing multi-gigabyte allocations, while exponential shared-structure array comparison, uncapped BigInteger multiplication and exponential user-function recursion escape both LoopLimit and the documented CancellationToken. The flaw is pure denial of service (no confidentiality or integrity impact) and is rated high severity; proof-of-concept templates with measured memory and timing figures are published in the upstream GHSA advisory, and the vendor-released fix is version 7.5.3, with remediation prioritised for this week.
RemediationAI
Upgrade to Scriban 7.5.3 (both Scriban and Scriban.Signed NuGet packages), which the vendor released to add pre-allocation size checks to the string-producing builtins and to bound the comparison, BigInteger and recursion paths; see https://github.com/scriban/scriban/security/advisories/GHSA-95w2-9mjq-6c74. If the upgrade cannot be applied immediately, the effective control is architectural: do not render templates authored by untrusted parties in a privileged host process, and instead render them in a separate, resource-capped worker (container memory limit plus a hard CPU quota) so that an out-of-memory kill or pinned core is contained to that worker rather than taking down co-hosted tenants; the trade-off is added latency and operational complexity. Restricting the available builtins and functions in the TemplateContext (removing math.format, object.format, regex.*, string.escape and date.to_string from the exposed ScriptObject) reduces the memory primitives but does not stop the array-comparison, BigInteger or recursion CPU paths. Relying on the documented CancellationToken alone is not sufficient for untrusted templates, because the advisory demonstrates that comparisons and single-statement expression evaluation continue running past the token deadline; treat it as a defence-in-depth measure, not a fix.
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 language and engine used to render user-supplied templates, frequently in multi-tenant SaaS, CMS and reporting scenarios. The root cause class is CWE-400 uncontrolled resource consumption, with CWE-770 (allocation without limits) and CWE-1333 (inefficient regular expression complexity) as contributing weaknesses. Scriban documents three runtime controls: LimitToString, an allocation guard for string-producing operations; LoopLimit, which covers internal array/range work; and a CancellationToken for aborting runaway rendering. In practice only string.append/prepend/replace/replace_first/pad_left/pad_right, array.join and string multiplication actually carry a guard. .NET precision specifiers passed straight through by math.format and object.format (Functions/MathFunctions.cs, ObjectFunctions.cs) and unguarded expansions in regex.replace, string.escape and regex.escape (RegexFunctions.cs, StringFunctions.cs) allocate before any size check runs, and string.replace only raises its LimitToString error after the result has been built. On the CPU side, ScriptArray.CompareTo walks shared structure without calling StepLoop or CheckAbort, so comparison cost grows as 2^depth; BigInteger multiplication is uncapped even though shift and power are bounded by MaxBigIntegerShift and ModPow; and expression evaluation never checks the abort token within a single statement. Function calls are charged only to RecursiveLimit (depth) and not to LoopLimit, so a default context provides no bound on exponential recursion. An unrelated html.strip backtracking pattern (previously closed as won't-fix) compounds the problem under default LoopLimit.
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 network-reachable untrusted template with no privileges or interaction and nothing exposed by the host triggers it (AV:N/AC:L/PR:N/UI:N); impact is availability-only DoS, so C:N/I:N/A:H.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Scriban before 7.5.3 contains a resource exhaustion vulnerability that allows untrusted template authors to exhaust memory and CPU because builtins like math.format, regex.replace and string.escape skip the LimitToString allocation guard. Attackers can submit small templates using huge format precision specifiers, shared-structure array comparison, BigInteger multiplication or exponential function recursion that ignore LoopLimit and CancellationToken, crashing or stalling multi-tenant hosts.
Technical POC Analysis
CWE-400 (Uncontrolled Resource Consumption; the advisory also lists CWE-770 and CWE-1333).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
The Scriban .NET templating engine, used in multi-tenant applications to render user-supplied templates, contains a high-severity denial-of-service vulnerability (CVE-2026-124437) that allows an untrusted template author to crash or stall the host with templates under 100 characters. This affects any organization using Scriban (or Scriban.Signed) versions up to 7.5.2 in a multi-tenant context, where a single malicious template can exhaust memory and CPU, causing service outages and impacting all tenants. Leadership should care because this is a readily exploitable availability risk with public proof-of-concept details, and remediation is straightforward via a vendor patch.
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
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
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
Uncontrolled recursion in the Scriban templating engine (NuGet packages Scriban and Scriban.Signed through 7.5.2) lets u
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-119563
GHSA-33xx-p3r3-5jv7
NVD
CVE.org
EPSS
Exploit-DB