Skip to main content

PHP EUVDEUVD-2026-14934

| CVE-2026-33157 HIGH
Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') (CWE-470)
2026-03-24 https://github.com/craftcms/cms GHSA-2fph-6v5w-89hh
8.6
CVSS 4.0 · GitHub Advisory
View

Attack ChainAIDerived

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

  1. Access
    Authenticate as control panel user
  2. Delivery
    Access ElementIndexesController::actionFilterHud()
  3. Exploit
    Pass malicious fieldLayouts parameter
  4. Execution
    Inject Yii2 behavior/event keys
  5. Impact
    Execute arbitrary code

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

Craft CMS 4.x and 5.x with authenticated control panel access. Attacker must be a privileged user with permissions to access ElementIndexesController's actionFilterHud() method. The vulnerability exists in the fieldLayouts parameter processing, which bypasses existing GHSA-7jx7-3846-m7w7 and GHSA-255j-qw47-wjh5 patches.

Impact

This vulnerability presents moderate-to-high real-world risk despite requiring authentication. The attack complexity is low once an attacker has control panel access, which is common in multi-user CMS deployments. While no CVSS score is provided in the data, the attack vector is network-based, requires low privileges (authenticated user), and achieves full RCE with complete system compromise potential. The availability of a patch from the vendor (commit 97e90b4) and the release of version 5.9.13 indicates the vendor considers this high priority. The fact that this bypasses previous security fixes suggests inadequate defense-in-depth and possible similar vulnerabilities in other code paths. Organizations with multiple control panel users or those who grant access to less-trusted users (clients, content editors) face elevated risk. The technical impact is severe (arbitrary code execution), and the attack is likely automatable once credentials are obtained, making this a genuine priority for patching.

Exploit ScenarioDerived

An attacker with legitimate control panel credentials (such as a compromised content editor account or malicious insider) crafts a POST request to the /admin/element-indexes/filter-hud endpoint with a malicious fieldLayouts parameter containing Yii2 behavior injection payloads. The payload includes an 'as rce' key that instantiates AttributeTypecastBehavior with a typecastBeforeSave property pointing to a shell command, and an 'on *' wildcard event handler. When the FieldLayout object initializes and triggers its EVENT_DEFINE_NATIVE_FIELDS event, the behavior's typecastAttributes() method executes, ultimately calling shell_exec() with the attacker's command, achieving full server compromise and potential data exfiltration or lateral movement within the infrastructure.

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

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

Alert me

AnalysisAIv1 – Mar 24, 2026

A Remote Code Execution vulnerability exists in Craft CMS versions 4.x and 5.x that bypasses previous security patches for behavior injection attacks. An authenticated user with control panel access can exploit an unsanitized fieldLayouts parameter in the ElementIndexesController to inject malicious Yii2 behaviors and achieve arbitrary code execution. While no active exploitation (KEV) is documented, a patch is available and the vulnerability requires only low-privilege authenticated access, making it a significant risk for deployments with multiple control panel users.

RemediationAI

Upgrade Craft CMS to version 5.9.13 or later, which includes the patch commit 97e90b4bdee369c1af3ca77a77531132df240e4e that adds proper cleanseConfig() sanitization to the ElementIndexesController::actionFilterHud() method. The patch and release information are available at https://github.com/craftcms/cms/releases/tag/5.9.13 and the security advisory at https://github.com/craftcms/cms/security/advisories/GHSA-2fph-6v5w-89hh. As an interim mitigation, restrict control panel access to only highly trusted users and implement network-level access controls to limit who can reach the control panel login. Review existing user permissions and revoke accessCp permission for any accounts that do not require administrative access, as this is the prerequisite for exploitation.

Affected VersionsENISA

CMS 5.6.0, < 5.9.13

Affected Packages

composer craftcms/cms fix: 5.9.13
euvd cms_5_6_0 fix: 5.9.13

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

This vulnerability affects Craft CMS (pkg:composer/craftcms_cms), a popular PHP-based content management system built on the Yii2 framework. The root cause is CWE-470 (Use of Externally-Controlled Input to Select Classes or Code), specifically through Yii2's behavior attachment mechanism. Previous fixes (GHSA-7jx7-3846-m7w7 and GHSA-255j-qw47-wjh5) added cleanseConfig() sanitization to strip 'as ' and 'on ' prefixed keys that enable behavior/event injection, but the ElementIndexesController::actionFilterHud() method was overlooked. When fieldLayouts configuration is passed to FieldLayout::createFromConfig() without sanitization, attackers can inject AttributeTypecastBehavior objects with crafted properties that trigger shell_exec() during the object lifecycle, specifically when init() fires EVENT_DEFINE_NATIVE_FIELDS and the typecastAttributes() chain executes.

Know when PHP 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

GitHub Advisory 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 GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

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

2
Patch released
Mar 24, 2026 - 17:00 nvd
Patch available
CVE Published
Mar 24, 2026 - 16:50 nvd
HIGH 8.6

DescriptionGitHub Advisory

Summary

A Remote Code Execution (RCE) vulnerability exists in Craft CMS 5.x and 4.x that bypasses the security fixes for GHSA-7jx7-3846-m7w7 and GHSA-255j-qw47-wjh5. This vulnerability can be exploited by any authenticated user with control panel access.

The existing patches add cleanseConfig() to assembleLayoutFromPost() and various FieldsController actions to strip Yii2 behavior/event injection keys (as and on prefixed keys). However, the fieldLayouts parameter in ElementIndexesController::actionFilterHud() is passed directly to FieldLayout::createFromConfig() without any sanitization, enabling the same behavior injection attack chain.

Impact

  • Attack Type: Remote Code Execution (RCE)
  • Authentication Required: Authenticated user with control panel access (accessCp permission)

Vulnerability Details

Root Cause

In ElementIndexesController::actionFilterHud() (line 493-494), the fieldLayouts body parameter is passed to FieldLayout::createFromConfig() without cleanseConfig():

php
// ElementIndexesController.php:485-494
if ($conditionConfig) {
    $conditionConfig = Component::cleanseConfig($conditionConfig); // conditionConfig IS cleansed
    $condition = $conditionsService->createCondition($conditionConfig);
} else {
    $condition = $this->elementType()::createCondition();
}

if (!empty($fieldLayouts)) {
    // fieldLayouts is NOT cleansed!
    $condition->setFieldLayouts(array_map(
        fn(array $config) => FieldLayout::createFromConfig($config),
        $fieldLayouts
    ));
}

Note the inconsistency: conditionConfig is sanitized with cleanseConfig(), but fieldLayouts is not.

Attack Chain

  1. Send a fieldLayouts array containing config with "as <name>" prefixed keys
  2. FieldLayout::createFromConfig($config) -> new self($config) -> Model::__construct($config)
  3. App::configure($this, $config) processes each key
  4. "as rce" key -> Component::__set("as rce", $value) -> Yii::createObject($value) -> instantiates AttributeTypecastBehavior and attaches it to the FieldLayout
  5. "on *" key -> registers a wildcard event handler
  6. parent::__construct() -> init() -> setTabs([]) -> getAvailableNativeFields() -> trigger(EVENT_DEFINE_NATIVE_FIELDS)
  7. The wildcard handler fires -> AttributeTypecastBehavior::beforeSave() -> typecastAttributes()
  8. $this->owner->typecastBeforeSave -> resolved via Component::__get() -> returns the command string from the behavior's own property
  9. call_user_func([ConsoleProcessus::class, 'execute'], $command) -> shell_exec($command)

Prerequisites

  • A user account with control panel access

Executive ViewAI

Why It Matters

A remote code execution vulnerability in Craft CMS 4.x and 5.x allows authenticated control panel users to execute arbitrary code on affected systems. Organizations using Craft CMS with multiple control panel users face immediate risk of unauthorized system compromise and data breach through any trusted insider or compromised account.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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 No
EPSS 0.0%
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

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