Skip to main content

Craft CMS EUVDEUVD-2026-41213

| CVE-2026-55794 HIGH
Code Injection (CWE-94)
2026-07-02 security-advisories@github.com GHSA-f74w-488g-8x5r
8.7
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to control panel as entry editor
  2. Delivery
    Craft malicious Twig payload in Referer header
  3. Exploit
    Submit entry-save request
  4. Execution
    renderObjectTemplate() compiles signed URL unsandboxed
  5. Persist
    Injected Twig executes on server
  6. Impact
    Achieve 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.

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

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

Alert me

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

CMS 5.9.0, < 5.10.0

Affected Packages

composer craftcms/cms fix: 5.10.0
euvd cms_5_9_0 fix: 5.10.0

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

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

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.

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

Primary rating from Vendor (github).

CVSS VectorVendor: github

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

Lifecycle Timeline

1
Patch available
Jul 06, 2026 - 23:01 EUVD

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.3%
Top 79% exploitable
Prevalence
Medium
widely-used open-source CMS but smaller footprint than WordPress
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA CIRCL GitHub VulDB

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 Yes
EPSS 0.3%
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

Code Injection CRITICAL

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.

Related Vulnerabilities in Craft CMS Authorization and Code Execution Flaws

View all 4

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