Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to control panel as entry editor
-
DeliveryCraft malicious Twig payload in Referer header
-
ExploitSubmit entry-save request
-
ExecutionrenderObjectTemplate() compiles signed URL unsandboxed
-
PersistInjected Twig executes on server
-
ImpactAchieve authenticated RCE
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated Craft CMS control panel user who possesses the 'edit entries' permission (PR:L), and the malicious payload must be delivered in the HTTP Referer header of a request that triggers the entry-save flow, where the signed redirect URL is compiled via renderObjectTemplate(). The attack applies only to Craft CMS 5.9.0 through 5.9.x; versions before 5.9.0 lack the vulnerable code path and 5.10.0 is patched. Limiting factors: the attacker cannot be fully unauthenticated (a valid editing account is mandatory), so the realistic threat is a malicious insider or a compromised/over-privileged editor account rather than an anonymous internet attacker; no special non-default server configuration is otherwise required, and no victim user interaction is needed. |
| Impact | The CVSS 4.0 base score of 8.7 (AV:N/AC:L/AT:N/PR:L/UI:N with high vulnerable-system confidentiality, integrity, and availability impact) reflects a network-reachable, low-complexity attack that nonetheless requires low-level privileges (PR:L) - specifically an authenticated control panel account with entry-edit rights - and no user interaction. This is a genuine priority for any organization where the Craft control panel is exposed to semi-trusted content editors, because such users are common and the step from 'can edit entries' to 'can run code on the server' is severe. However, the requirement for an authenticated, permissioned account meaningfully limits mass or unauthenticated exploitation, so this is not a wormable internet-wide threat. No EPSS score, KEV entry, or POC was provided in the intelligence, so exploitation probability signals are absent; the absence of KEV listing combined with the authentication requirement suggests risk is real but currently theoretical/targeted rather than opportunistic. Note the CVSS subsequent-system metrics (SC:L/SI:L/SA:L) imply limited blast radius beyond the vulnerable host, consistent with code execution confined to the web application context. |
| Exploit ScenarioDerived | An attacker who holds (or has phished/compromised) a low-privilege Craft control panel account with entry-editing permission crafts a malicious Referer header containing Twig code and triggers an entry save, causing the injected template expression to be compiled and executed unsandboxed on the server. Because the attack is network-based with low complexity and no user interaction, a single authenticated request can yield code execution. No public proof-of-concept was identified in the provided intelligence. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 02, 2026
Authenticated remote code execution in Craft CMS 5.9.0 through 5.9.x allows control panel users with entry-editing permissions to inject unsandboxed Twig code via the HTTP Referer header during entry save operations. Because the signed redirect URL derived from the attacker-controlled Referer is compiled with renderObjectTemplate() instead of the sandboxed renderSandboxedObjectTemplate(), a low-privileged CMS operator can achieve server-side template injection leading to code execution. There is no public exploit identified at time of analysis and it is not listed in CISA KEV, but the flaw is fixed in Craft CMS 5.10.0.
RemediationAI
Vendor-released patch: upgrade to Craft CMS 5.10.0, which replaces the unsandboxed renderObjectTemplate() call with the sandboxed alternative in the entry-save redirect handling; this is the primary and complete fix (advisory: https://github.com/craftcms/cms/security/advisories/GHSA-f74w-488g-8x5r, code change: https://github.com/craftcms/cms/pull/18680). If immediate upgrade is not possible, reduce exposure by tightening control panel permissions so that only fully trusted administrators hold entry-edit rights, since exploitation requires an authenticated editing account - the trade-off is reduced editorial delegation. Additionally, restrict network access to the control panel (e.g., IP allowlisting or VPN-gating the CP path) and consider a WAF rule to strip or sanitize Twig-syntax patterns (such as {{ }} and {% %}) in inbound Referer headers to control panel endpoints, accepting that header-filtering rules can be bypassed and may break legitimate requests, so they are a stopgap rather than a substitute for the patch.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Craft CMS is a PHP-based content management system that uses the Twig templating engine for rendering dynamic content, including object templates for user-facing strings such as redirect URLs. Craft deliberately provides two rendering paths: renderObjectTemplate(), which evaluates Twig without a security sandbox, and renderSandboxedObjectTemplate(), which restricts access to dangerous functions, filters, and object methods. The vulnerability (CWE-94, Improper Control of Generation of Code / code injection) arises because the entry-save flow compiles the signed redirect URL - whose value is reflected from the attacker-controlled Referer HTTP header - through the non-sandboxed renderObjectTemplate(), so injected Twig expressions execute with full engine capabilities rather than being neutralized by the sandbox. No CPE strings were supplied in the intelligence set, so exact affected configuration entries could not be cross-referenced; affected scope is derived from the vendor advisory version range.
Know when the next one hits your stack
- 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:L/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:L
Network-reachable entry-save flow with low complexity, but requires an authenticated entry-editing account (PR:L); code execution yields full high C/I/A on the host, scope unchanged.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
1DescriptionCVE.org
Craft CMS is a content management system (CMS). In versions 5.9.0 and above prior to 5.10.0, control panel users with the ability to edit entries can execute unsandboxed Twig code via the HTTP Referrer header, potentially leading to authenticated RCE. The issue happens when a user is saving entries. Strings for a signed redirect URL are being compiled as a Twig template via renderObjectTemplate(), and while a sandboxed alternative already exists (renderSandboxedObjectTemplate()), it is not used in this case. This signed URL can be specified by users, as it is reflected in the “Referer” HTTP request header, which is under attacker control. This issue has been fixed in version 5.10.0.
Executive ViewAI
Craft CMS versions 5.9.0 through 5.9.x contain an authenticated remote code execution vulnerability in the control panel that allows operators with entry-editing permissions to execute arbitrary code via Twig template injection. Organizations running these versions expose their CMS operators to account compromise, risking complete website takeover, customer data exposure, and operational disruption.
Apply vendor patch: Upgrade to Craft CMS 5.10.0 or later. If upgrade timeline exceeds 7 days, restrict entry-editing permissions to essential operators only and implement network-level controls limiting control panel access to trusted IP ranges.
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
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
EUVD-2026-41213
GHSA-f74w-488g-8x5r
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB