Skip to main content

Duplicate Advisory: Craft CMS: Authenticated RCE via `condition.config` JSON cleanse bypass

0
High
Published: 08/11/2026 (08/11/2026, 15:32:38 UTC)
Source: GCVE Database
Product: craftcms/cms

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected software

Packagistghsa
craftcms/cms
Affected versions
>=4.0.0-RC1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/07/2026, 18:37:42 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses