Duplicate Advisory: Craft CMS: RCE via missing cleanseConfig in FieldsController::actionRenderCardPreview
Craft CMS versions 5.5.0 through 5.9.13 contain a remote code execution vulnerability in the FieldsController::actionRenderCardPreview() method. This flaw allows an authenticated admin user to inject Yii2 event handlers via the fieldLayoutConfig POST parameter, leading to arbitrary PHP code execution and potential disclosure of sensitive information such as environment variables and security keys. The vulnerability is fixed in version 5.9.14.
AI Analysis
Technical Summary
Craft CMS (composer package craftcms/cms) versions >=5.5.0 and <=5.9.13 have a remote code execution vulnerability in the FieldsController::actionRenderCardPreview() method. The issue arises because the fieldLayoutConfig POST parameter is passed directly to Fields::createLayout() without cleansing via Component::cleanseConfig(). This omission allows an authenticated admin user to inject Yii2 event handlers (e.g., 'on init' keys) to execute arbitrary PHP code and disclose sensitive data including environment variables containing database credentials and the CRAFT_SECURITY_KEY. The vulnerability is addressed in version 5.9.14.
Potential Impact
An authenticated administrator can exploit this vulnerability to execute arbitrary PHP code remotely, potentially leading to full system compromise. Additionally, sensitive information such as environment variables, database credentials, and security keys may be disclosed. The CVSS v3.1 score is 7.2 (High), reflecting the network attack vector, low attack complexity, required high privileges, no user interaction, and high confidentiality, integrity, and availability impacts.
Mitigation Recommendations
Upgrade Craft CMS to version 5.9.14 or later, where this vulnerability is fixed. No other mitigations are indicated. Patch status is confirmed by the vendor advisory stating the issue is resolved in 5.9.14.
Duplicate Advisory: Craft CMS: RCE via missing cleanseConfig in FieldsController::actionRenderCardPreview
Description
Craft CMS versions 5.5.0 through 5.9.13 contain a remote code execution vulnerability in the FieldsController::actionRenderCardPreview() method. This flaw allows an authenticated admin user to inject Yii2 event handlers via the fieldLayoutConfig POST parameter, leading to arbitrary PHP code execution and potential disclosure of sensitive information such as environment variables and security keys. The vulnerability is fixed in version 5.9.14.
CVSS v3.1
Score 7.2high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Craft CMS (composer package craftcms/cms) versions >=5.5.0 and <=5.9.13 have a remote code execution vulnerability in the FieldsController::actionRenderCardPreview() method. The issue arises because the fieldLayoutConfig POST parameter is passed directly to Fields::createLayout() without cleansing via Component::cleanseConfig(). This omission allows an authenticated admin user to inject Yii2 event handlers (e.g., 'on init' keys) to execute arbitrary PHP code and disclose sensitive data including environment variables containing database credentials and the CRAFT_SECURITY_KEY. The vulnerability is addressed in version 5.9.14.
Potential Impact
An authenticated administrator can exploit this vulnerability to execute arbitrary PHP code remotely, potentially leading to full system compromise. Additionally, sensitive information such as environment variables, database credentials, and security keys may be disclosed. The CVSS v3.1 score is 7.2 (High), reflecting the network attack vector, low attack complexity, required high privileges, no user interaction, and high confidentiality, integrity, and availability impacts.
Mitigation Recommendations
Upgrade Craft CMS to version 5.9.14 or later, where this vulnerability is fixed. No other mitigations are indicated. Patch status is confirmed by the vendor advisory stating the issue is resolved in 5.9.14.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-pmm4-v8f6-4vpp
- Osv Schema Version
- 1.4.0
- Aliases
- []
- Ecosystems
- ["Packagist"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a7573b9bf8831d539d940d0
Added to database: 08/07/2026, 05:57:13 UTC
Last enriched: 08/07/2026, 06:27:03 UTC
Last updated: 08/07/2026, 06:27:03 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.