Skip to main content

Craft CMS EUVDEUVD-2026-104579

| CVE-2026-112773 HIGH
Code Injection (CWE-94)
2026-10-19 VulnCheck GHSA-8vpq-j4mg-h24p
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to Control Panel as CP user
  2. Delivery
    Pass uncleansed criteria to getNext/getPrev/getOwners
  3. Exploit
    Inject Yii 'as'/'on' config keys to attach event handler
  4. Execution
    Element query triggers malicious handler
  5. Impact
    Execute arbitrary code as web user

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

Requires an authenticated Craft CMS Control Panel account (PR:L) on a version from 5.0.0 up to but not including 5.11.0; no end-user interaction is needed (UI:N). The specific trigger is passing uncleansed/attacker-controlled criteria into the getNext, getPrev, or getOwners element-query methods, allowing injection of Yii framework 'as' (behavior) or 'on' (event) configuration keys that attach a malicious event handler executed when the element query runs. The principal limiting factor is the Control Panel authentication requirement - exploitation is impossible for fully unauthenticated attackers, so real-world risk is driven by how broadly and to how low-trust a population CP accounts are granted; the Twig sandbox (normally a protective boundary for less-trusted template authors) is the control being escaped.

Impact

This is a genuinely serious but not drop-everything-now issue. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) with full high impact to confidentiality, integrity, and availability (VC:H/VI:H/VA:H) correctly reflects remote, low-complexity code execution that nonetheless requires authentication - PR:L means an attacker needs a valid Control Panel account, which is the single most important risk-limiting factor. The description confirms this: exploitation is limited to 'authenticated Control Panel users,' so this is a privilege-escalation/sandbox-escape primitive, not an unauthenticated internet-facing RCE. No EPSS score was provided in the input, so exploitation probability cannot be quantified. There is no CISA KEV listing and no public exploit was referenced, so the status is 'no public exploit identified at time of analysis.' The signals are internally consistent (CVSS network vector matches the HTTP-based Control Panel, PR:L matches the authenticated requirement), so there is no contradiction to flag - the chief caveat is simply that CP access is required, which in well-run deployments is restricted to trusted content editors and admins. Prioritize patching where untrusted or low-trust users hold CP accounts; deprioritize relative to unauthenticated RCEs where CP access is tightly held.

Exploit ScenarioDerived

An attacker who has obtained a low-privileged Craft CMS Control Panel account (e.g., a content author, or a compromised editor credential) crafts an element query that passes uncleansed criteria into getNext, getPrev, or getOwners, injecting Yii 'as'/'on' configuration keys to attach a malicious event handler. When the element query executes, the handler runs attacker-controlled code as the web server user, escaping the Twig sandbox. No public exploit code was referenced, but the described technique is concrete and reliably reproducible by a skilled attacker.

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

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

Alert me

AnalysisAIv1 – Oct 19, 2026

Authenticated Control Panel users on Craft CMS 5.0.0 through 5.10.x can escape the Twig sandbox and achieve remote code execution by supplying uncleansed criteria to the getNext, getPrev, or getOwners element-query methods. The injected Yii 'as' or 'on' configuration keys attach a malicious behavior or event handler that executes as the web server user when the query runs. No public exploit code or CISA KEV entry was identified at time of analysis; the primary barrier is the requirement for a valid Control Panel account.

RemediationAI

Vendor-released patch: upgrade to Craft CMS 5.11.0 or later; the fix hardens the getNext, getPrev, and getOwners criteria handling so Yii 'as' and 'on' keys cannot be injected, and the vendor advisory GHSA-wr79-9v6x-5rfq should be consulted for the exact upgrade path. If immediate upgrade is not possible, restrict Control Panel access to a minimal set of trusted administrators, review and remove dormant or low-trust CP accounts, and audit template-editing permissions because any authenticated CP user who can influence element-query criteria is a potential trigger. These compensating controls trade content-team flexibility and administrative convenience for reduced attack surface, and they do not fully eliminate the flaw; monitoring for anomalous element-query activity or unexpected behavior/event configuration can provide detection while the upgrade is scheduled.

Affected VersionsENISA

CMS 5.0.0 <5.11.0

Affected Packages

euvd cms fix: 5.11.0

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

Craft CMS is a PHP-based CMS built on the Yii framework and uses Twig for templating, with a sandbox intended to let less-trusted template authors render content without arbitrary PHP execution. Element query methods such as getNext(), getPrev(), and getOwners() accept criteria arrays; in affected versions these methods do not adequately cleanse attacker-controlled keys before passing the criteria into Yii's object configuration machinery. Yii recognizes the special 'as' key for attaching behaviors and the 'on' key for attaching event handlers, so a crafted criteria array can register a handler that fires when the element query is executed, breaking out of the Twig sandbox. This is a code-injection flaw (CWE-94) rather than a memory-safety issue; the CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H) and the independent CVSS 3.1 assessment agree that exploitation is network-reachable, requires a low-privileged authenticated Control Panel account, needs no user interaction, and yields high confidentiality, integrity, and availability impact confined to the Craft CMS application scope.

Know when Craft Cms 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:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 8.8 HIGH

Authenticated CP user yields PR:L; HTTP-reachable Control Panel gives AV:N/AC:L; code execution as web user yields C:H/I:H/A:H with 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 (VulnCheck).

CVSS VectorVendor: VulnCheck

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
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Oct 19, 2026 - 21:17 EUVD
CVE Published
Oct 19, 2026 - 19:10 cve.org
HIGH 8.7

DescriptionCVE.org

Craft CMS from 5.0.0 before 5.11.0 contains a remote code execution vulnerability that allows authenticated Control Panel users to escape the Twig sandbox by passing uncleansed criteria to getNext, getPrev, or getOwners. Attackers can inject Yii "as" or "on" config keys to attach malicious event handlers that execute when the element query runs, achieving code execution as the web user.

Technical POC Analysis

CWE-94 (Improper Control of Generation of Code / Code Injection).

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

Craft CMS 5.0.0 through 5.10.x contains a high-severity code execution flaw that can compromise the web server hosting affected sites. Organizations running these versions should treat the issue as a priority because a successful attack could expose site data, customer information, and integrated services, leading to operational disruption and reputational harm.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis; interim mitigations include restricting Control Panel access to trusted administrators, enforcing MFA, applying least privilege, monitoring logs for suspicious element-query behavior, and deploying WAF or virtual patching rules for Control Panel endpoints.

Threat Intelligence Overview

EPSS Score
0.7%
Top 47% exploitable
Prevalence
Medium
popular commercial PHP CMS, common but far smaller footprint than WordPress
Data Quality
4 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.7%
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

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
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.

CVE-2025-32432 CRITICAL POC
10.0 Apr 25

Craft CMS versions 3.x through 5.x contain a critical remote code execution vulnerability (CVSS 10.0) that allows unauth

CVE-2025-35939 MEDIUM
6.9 May 07

Craft CMS stores arbitrary content provided by unauthenticated users in session files. Rated medium severity (CVSS 6.9),

CVE-2023-41892 CRITICAL POC
9.8 Sep 13

Craft CMS is a platform for creating digital experiences. Rated critical severity (CVSS 9.8), this vulnerability is remo

CVE-2024-56145 CRITICAL POC
9.3 Dec 18

Craft is a flexible, user-friendly CMS for creating custom digital experiences on the web and beyond. Rated critical sev

CVE-2024-37843 CRITICAL POC
9.8 Jun 25

Craft CMS up to v3.7.31 was discovered to contain a SQL injection vulnerability via the GraphQL API endpoint. Rated crit

CVE-2020-9757 CRITICAL POC
9.8 Mar 04

The SEOmatic component before 3.3.0 for Craft CMS allows Server-Side Template Injection that leads to RCE via malformed

CVE-2026-28697 CRITICAL POC
9.1 Mar 04

RCE in Craft CMS before 4.17.0-beta.1/5.9.0-beta.1 via template injection for authenticated admins. PoC and patch availa

CVE-2025-68455 HIGH POC
8.6 Jan 05

Authenticated remote code execution in Craft CMS versions 5.0.0-RC1 through 5.8.20 and 4.0.0-RC1 through 4.16.16 lets an

CVE-2026-25495 HIGH POC
8.8 Feb 09

SQL injection in Craft CMS 4.0.0-RC1 through 4.16.17 and 5.0.0-RC1 through 5.8.21 allows authenticated Control Panel use

CVE-2023-30130 HIGH POC
8.8 May 12

An issue found in CraftCMS v.3.8.1 allows a remote attacker to execute arbitrary code via a crafted script to the Sectio

CVE-2022-29933 HIGH POC
8.8 May 09

Craft CMS through 3.7.36 allows a remote unauthenticated attacker, who knows at least one valid username, to reset the a

CVE-2018-3814 HIGH POC
8.8 Jan 01

Craft CMS 2.6.3000 allows remote attackers to execute arbitrary PHP code by using the "Assets->Upload files" screen and

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