Skip to main content

Scriban EUVDEUVD-2026-119563

| CVE-2026-124437 HIGH
Uncontrolled Resource Consumption (CWE-400)
2026-11-08 VulnCheck GHSA-33xx-p3r3-5jv7
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted Scriban template to host
  2. Delivery
    Invoke unguarded builtin or recursive construct
  3. Exploit
    Bypass LimitToString / LoopLimit / CancellationToken guards
  4. Execution
    Exhaust host memory or pin CPU
  5. Impact
    Denial 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 {{ x = 1.5 | math.format 'F999999999'; x | string.size }}, forcing a ~6 GB allocation that OOM-kills the container or thrashes GC for every co-hosted tenant. Alternatively a CPU variant like the shared-structure array comparison or repeated BigInteger squaring pins a core indefinitely and ignores even a configured CancellationToken. The GHSA advisory publishes working PoC templates and a default-configuration C

host, so no special tooling is required.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

scriban 0 <7.5.3

Affected Packages

euvd scriban fix: 7.5.3

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

Vendor (VulnCheck) PRIMARY 8.7 HIGH
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
vuln.today AI 7.5 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 08, 2026 - 14:01 EUVD
CVE Published
Nov 08, 2026 - 13:15 cve.org
HIGH 8.7

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 64% exploitable
Prevalence
Medium
popular .NET/NuGet templating library, but exposure limited to untrusted-template hosts
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2026-73061 CRITICAL
9.3 Aug 16

Arbitrary CLR property writes in Scriban (the .NET templating engine) before 7.2.2 allow template code to mutate live ho

CVE-2026-74790 CRITICAL
9.3 Aug 16

Sandbox escape in the Scriban .NET templating engine (all versions before 7.0.0) lets attacker-influenced templates read

CVE-2026-74791 CRITICAL
9.2 Aug 16

Information disclosure and authorization bypass in Scriban (the .NET text templating engine) before 7.0.0 lets attackers

CVE-2026-124438 CRITICAL
9.1 Nov 08

Scriban through 7.5.1 exposes the .NET objects behind imported function values, letting a template author read members s

CVE-2026-137508 HIGH
8.7 Nov 26

Memory exhaustion denial of service in the Scriban .NET templating engine through 7.5.3 (both the Scriban and Scriban.Si

CVE-2026-137509 HIGH
8.7 Nov 26

Memory exhaustion in Scriban before 7.6.0 lets anyone who can supply template source render a roughly 2 KB template that

CVE-2026-137512 HIGH
8.7 Nov 26

Unauthenticated, network-reachable denial of service in Scriban through 7.5.3 (including the Scriban.Signed distribution

CVE-2026-124439 HIGH
8.7 Nov 08

Uncontrolled recursion in the Scriban templating engine (NuGet packages Scriban and Scriban.Signed through 7.5.2) lets u

CVE-2026-73060 HIGH
8.7 Aug 16

Scriban template engine versions 3.0.0 through 7.2.5 expose any application accepting untrusted templates to complete CP

CVE-2026-74789 HIGH
8.7 Aug 16

Uncontrolled resource consumption in Scriban's .NET templating engine allows any party who can submit template input to

CVE-2026-74795 HIGH
8.7 Aug 16

Remote denial of service in Scriban before 6.6.0 allows unauthenticated attackers to crash the entire .NET hosting proce

CVE-2026-74792 HIGH
8.7 Aug 16

Process-terminating stack overflow in Scriban's template parser affects all versions before 7.0.0, allowing any attacker

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy