Duplicate Advisory: Craft CMS: Authenticated RCE via `condition.config` JSON cleanse bypass
Description
Craft CMS versions from 4.0.0-RC1 before 4.18.2 and from 5.0.0-RC1 before 5.10.6 contain an authenticated remote code execution vulnerability in the control panel element-search condition handling. The vulnerability arises because a JSON string in condition.config is not properly cleansed after decoding, allowing special Yii configuration keys to be interpreted and executed. An attacker with an authenticated control panel session and a valid CSRF token can exploit this to execute operating system commands as the PHP/web user.
CVSS v3.1
Score 8.8high
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 versions 4.0.0-RC1 up to but not including 4.18.2 and 5.0.0-RC1 up to but not including 5.10.6 have an authenticated remote code execution vulnerability. The issue is in the control panel element-search condition handling where the outer request-controlled condition array is cleansed via Component::cleanseConfig(), but the JSON string in condition.config is decoded and merged without reapplying cleanseConfig(). This allows Yii special config keys such as 'as ...' and 'on ...' to be hidden inside the JSON string and interpreted as behavior/event configuration during FieldLayout object creation, enabling command execution as the PHP/web user by an authenticated attacker with a valid CSRF token.
Potential Impact
An attacker who has an authenticated control panel session and a valid CSRF token can exploit this vulnerability to execute arbitrary operating system commands with the privileges of the PHP/web user. This can lead to full system compromise depending on the privileges of the web server user.
Mitigation Recommendations
A fix is available in Craft CMS versions 4.18.2 and later, and 5.10.6 and later. Users should upgrade to these versions or later to remediate this vulnerability. No other mitigation guidance is provided in the advisory.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-w36c-qxrq-v7fw
- Osv Schema Version
- 1.4.0
- Ecosystems
- ["Packagist"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a9845c7acd9273b496affbb
Added to database: 09/02/2026, 15:50:31 UTC
Last enriched: 09/07/2026, 18:37:42 UTC
Last updated: 10/03/2026, 22:07:39 UTC
Views: 78
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.