Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit attacker-controlled Scriban template
-
DeliveryCall array.map on imported delegate member
-
ExploitResolve .NET delegate Target/Method via reflection accessor
-
ExecutionRead captured secrets and service properties
-
ImpactOverwrite public fields persisting in host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK
2 techniques across 2 tactics: Collection, Discovery The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Attacker prerequisite: the application must render attacker-controlled Scriban template text (PR:N - the attacker only submits a template, no authentication to Scriban itself). The high-impact read/write variant additionally requires a host-side condition outside the attacker's control: the host must have called ScriptObject.Import(name, Delegate) with an instance-method delegate (new Func<...>(service.Method)) or a lambda that captures locals - only those create a non-null delegate Target holding state. This host condition is what drives AC:H/AT:P and limits realistic impact. Where no stateful delegate is imported, only variant B applies on every host: a template reaches System.Type/Assembly/MethodInfo objects through builtins (e.g. string.upcase, date.now), disclosing install paths and exact runtime version - information disclosure only, no write. No code-execution path was found (methods on reflected objects are not callable through the accessor). The only complete fix per the vendor is upgrading to 7.5.2. |
| Impact | Signals point to a genuine priority but with an important nuance about which variant you face. The vuln.today decision label is act_now and VulnCheck plus the vendor GHSA both treat this as high impact; a detailed proof-of-concept is published in the advisory. However, the severity signals conflict: the input CVSS 4.0 vector scores 9.1, while the vendor's own CVSS 3.1 self-assessment in the GHSA is only 7.4 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N). The gap is driven entirely by AC/AT: the high-impact read-and-write variant requires the host to have imported a stateful delegate via ScriptObject.Import(name, Delegate) - an instance-method delegate or a capturing lambda - which is a host configuration outside the attacker's control (hence AC:H / AT:P). The vendor explicitly notes that if that configuration is considered the norm, AC:L yields 9.1, which explains the 4.0 score. No EPSS score and no CISA KEV entry are present in the input, so there is no evidence of active or widespread exploitation - exploitation status is a published PoC only, not in-the-wild use. Net: treat as act_now for any .NET service that renders attacker-influenced Scriban templates AND imports instance/closure delegates (real C:H/I:H exposure of secrets with persistent write-back); for hosts that expose no stateful delegates, only the information-disclosure variant B applies (reflection/assembly-path leak, ~5.3), which is lower urgency. |
| Exploit ScenarioDerived | An application lets untrusted users (or tenants) submit Scriban templates and has imported a service or lambda delegate, e.g. so.Import("greet", new Func<...>(service.Method)). An attacker submits a template using array.map on the delegate's 'target' member to reach the bound service instance or captured closure via reflection, then reads a captured secret (connection string, API key) and overwrites public properties/fields, with the change persisting in the live host after Render. A full working proof-of-concept for both the read/write and reflection-leak paths is published in the vendor GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 08, 2026
Scriban through 7.5.1 exposes the .NET objects behind imported function values, letting a template author read members such as Target, Method and ReturnType off a function via array.map instead of invoking it. Where the host imported an instance-method delegate or a closure-capturing lambda, the template can read and then overwrite the reachable public properties, fields and captured locals - connection strings, API keys, auth flags, service state - and those writes persist in the host after Render returns; hosts that import no stateful delegate are limited to disclosure of assembly paths and exact runtime version, with no code-execution path found. Scoring differs by standard: the CNA assigned CVSS 4.0 9.1, while the assessed CVSS 3.1 vector is 7.4 (AV:N/AC:H/PR:N/UI:N/C:H/I:H) because the read/write variant hinges on a host-side import pattern outside the attacker's control; a working proof-of-concept template is published in the vendor advisory, no confirmed active exploitation appears in the available data, and the vuln.today priority is act_now.
RemediationAI
Upgrade to Scriban 7.5.2 (and Scriban.Signed 7.5.2) - the vendor states upgrading is the only complete fix, per https://github.com/scriban/scriban/security/advisories/GHSA-hvr4-4p37-494f. If the upgrade cannot be staged immediately, the highest-value compensating control follows directly from the trigger condition: stop calling ScriptObject.Import(name, Delegate) with instance-method delegates or lambdas that capture secrets, and import only static members via Import(object)/Import(Type), which never create a non-null delegate Target and therefore eliminate the read/write variant - the trade-off is that instance services must be wrapped behind stateless static functions. For the residual variant B exposure (assembly paths and runtime version via Method/ReturnType on any builtin), restrict who can submit template text, and be aware that untrusted templates can still fingerprint the host runtime. Hosts that intend to adopt the upstream design fix should return an empty accessor (e.g. NullAccessor) for IScriptCustomFunction instances so function values expose no members, or at minimum hide Target, Method, ReturnType and Tag from template member access, and should audit other builtins that read a member by name from raw items (array.map, array.sort/filter-style member arguments) for the same raw-object path; disabling array.map's member argument closes the known read path but breaks legitimate member-based mapping and filtering in existing 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 whose safe-runtime contract states that templates can only reach builtin functions plus the objects and members the application explicitly exposes. The flaw sits in TemplateContext.GetMemberAccessor (src/Scriban/TemplateContext.cs, ~L994), which hands back a reflection TypedObjectAccessor for the custom-function wrapper objects themselves, so their public members become template-visible: DelegateCustomFunction.Target (src/Scriban/Runtime/DelegateCustomFunction.cs, ~L39) is the delegate target - the service instance for an instance-method delegate, or the compiler-generated display class holding captured locals for a lambda; DynamicCustomFunction.Method (~L34, a public readonly MethodInfo), ReturnType (~L178, a System.Type) and Tag (~L183) are likewise reachable. Calling a member on a function variable normally invokes the function, but array.map (src/Scriban/Functions/ArrayFunctions.cs, ~L646) reads the named member on each raw item, so [@fn] | array.map "target" yields the underlying .NET object, after which ordinary reflected-object rules apply - public getters readable, public setters and fields writable, recursively across everything reachable. This maps to CWE-200 (exposure of internal information) with a secondary CWE-915 object-manipulation/mass-assignment component tracked in the GHSA. Only ScriptObject.Import(name, Delegate) (ScriptObjectExtensions.cs, ~L390) produces a function with a non-null Target; Import(object) and Import(Type) import static methods and therefore never expose an instance - that distinction is exactly what the assessment encodes as AC:H/AT:P, and it also bounds the realistic impact, since the Method/ReturnType path works on every builtin but yields only System.Type, Assembly and MethodInfo objects (install paths, runtime version, type enumeration), and methods on those reflected objects are not callable through the accessor. Prerequisites: the application must render attacker-controlled template text (PR:N, no authentication to Scriban), plus, for the write variant, a host that imports instance-method delegates or capturing lambdas.
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:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
AV:N/PR:N/UI:N because the attacker only submits a template; AC:H because the read/write impact depends on the host importing a stateful delegate; C:H/I:H for secret disclosure plus persistent write-back; A:N.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Scriban before 7.5.2 contains an information disclosure and object manipulation vulnerability that allows template authors to access .NET internals of function values through reflection member accessors. Attackers can use array.map to read Target, Method, or ReturnType on imported delegates, exposing and overwriting service properties, captured closure secrets, and assembly paths.
Technical POC Analysis
CWE-200 (with CWE-915 for the write primitive).
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-124438 is a critical vulnerability in the Scriban template engine (through 7.5.1) that allows template authors to read and modify sensitive .NET objects exposed via imported functions, potentially leaking or altering credentials and service state. This affects any application using Scriban to render user-supplied templates that import stateful delegates, posing a risk to data confidentiality and system integrity. Leadership should prioritize remediation because the flaw can be exploited by authenticated users with template authoring privileges, and a public proof-of-concept exists.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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
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
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-119562
GHSA-fr78-j433-79gx
NVD
CVE.org
EPSS
Exploit-DB