The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-33157

CVE-2026-33157: Craftcms Craft CMS RCE Vulnerability

CVE-2026-33157 is a remote code execution flaw in Craftcms Craft CMS affecting versions 5.6.0 to 5.9.12. Authenticated users can exploit this bypass vulnerability. This article covers technical details, impact, and fixes.

Published: March 27, 2026

CVE-2026-33157 Overview

CVE-2026-33157 is a Remote Code Execution (RCE) vulnerability affecting Craft CMS, a popular content management system. This vulnerability exists in versions 5.6.0 through 5.9.12 and can be exploited by any authenticated user with control panel access. The flaw represents a bypass of a previous security fix, allowing attackers to leverage Yii2 behavior/event injection through an unsanitized code path.

Critical Impact

Authenticated attackers with control panel access can achieve full remote code execution on the underlying server, potentially leading to complete system compromise, data theft, and lateral movement within the network.

Affected Products

  • Craft CMS versions 5.6.0 to 5.9.12
  • craftcms craft_cms

Discovery Timeline

  • 2026-03-24 - CVE-2026-33157 published to NVD
  • 2026-03-26 - Last updated in NVD database

Technical Details for CVE-2026-33157

Vulnerability Analysis

This vulnerability falls under CWE-470 (Use of Externally-Controlled Input to Select Classes or Code), which describes improper handling of user-controlled input when selecting classes or executing code. The root issue stems from an incomplete security patch that failed to cover all vulnerable code paths.

The previous patches implemented the cleanseConfig() function in assembleLayoutFromPost() and various FieldsController actions to strip Yii2 behavior and event injection keys (specifically keys prefixed with "as" and "on"). However, the fieldLayouts parameter in ElementIndexesController::actionFilterHud() was overlooked, creating an alternative attack path that bypasses the existing protections.

The vulnerability can be exploited over the network without requiring user interaction, though it does require authentication with control panel access privileges.

Root Cause

The root cause is an incomplete security fix that failed to sanitize user input in all relevant code paths. While cleanseConfig() was applied to multiple controller actions to prevent Yii2 behavior injection, the fieldLayouts parameter in ElementIndexesController::actionFilterHud() is passed directly to FieldLayout::createFromConfig() without any sanitization.

The Yii2 framework supports behavior and event injection through specially prefixed configuration keys ("as" for behaviors and "on" for events). When these keys are present in configuration arrays, Yii2 automatically attaches behaviors or registers event handlers. Without proper sanitization, attackers can inject malicious behaviors that execute arbitrary code during object configuration.

Attack Vector

The attack targets the ElementIndexesController::actionFilterHud() endpoint within the Craft CMS control panel. An authenticated attacker can craft a malicious request containing the fieldLayouts parameter with Yii2 behavior injection keys. Since this parameter bypasses the cleanseConfig() sanitization, it flows directly into FieldLayout::createFromConfig(), triggering the behavior injection mechanism.

The attack chain involves injecting a configuration array with "as" or "on" prefixed keys that reference attacker-controlled classes or callbacks. When Yii2 processes this configuration, it instantiates the specified behavior class or executes the event handler, leading to arbitrary code execution on the server.

This vulnerability requires the attacker to have valid credentials with control panel access, making it a post-authentication attack. However, the impact is significant as it allows complete server compromise from a potentially lower-privileged CMS user account.

Detection Methods for CVE-2026-33157

Indicators of Compromise

  • Unusual HTTP POST requests to ElementIndexesController::actionFilterHud() containing fieldLayouts parameters with "as" or "on" prefixed keys
  • Unexpected process execution or file system modifications originating from the web server process
  • Anomalous outbound network connections from the Craft CMS application server
  • Log entries showing access to the filter HUD endpoint with abnormally large or encoded payloads

Detection Strategies

  • Monitor web application logs for requests to /admin/element-indexes/filter-hud or similar endpoints containing suspicious parameter patterns
  • Implement Web Application Firewall (WAF) rules to detect and block requests containing Yii2 behavior injection patterns ("as " and "on " prefixed keys in JSON/array parameters)
  • Deploy file integrity monitoring on the Craft CMS installation directory to detect unauthorized modifications
  • Configure intrusion detection systems to alert on command execution or shell spawning from the PHP process

Monitoring Recommendations

  • Enable detailed access logging for the Craft CMS control panel and review logs for anomalous activity
  • Implement application-level logging to capture requests to FieldLayout::createFromConfig() with external configuration sources
  • Monitor for authenticated sessions performing unusual sequences of API calls that may indicate exploitation attempts
  • Set up alerts for any code execution or system calls originating from the web application context

How to Mitigate CVE-2026-33157

Immediate Actions Required

  • Upgrade Craft CMS to version 5.9.13 or later immediately
  • Review control panel user accounts and remove unnecessary access privileges
  • Audit recent control panel activity logs for suspicious behavior
  • Consider temporarily restricting control panel access to trusted IP addresses until patching is complete

Patch Information

Craft CMS has released version 5.9.13 which addresses this vulnerability by extending the cleanseConfig() sanitization to cover the fieldLayouts parameter in ElementIndexesController::actionFilterHud(). The fix ensures that Yii2 behavior and event injection keys are properly stripped from all user-controlled configuration inputs.

The patch commit is available at the GitHub Commit Changes. For complete details, see the GitHub Security Advisory GHSA-2fph-6v5w-89hh and the GitHub Release Version 5.9.13.

Workarounds

  • Restrict control panel access to only essential personnel with verified need
  • Implement network-level access controls (IP whitelisting) for the Craft CMS admin interface
  • Deploy a Web Application Firewall with rules to block requests containing Yii2 behavior injection patterns
  • Consider running Craft CMS in a containerized environment with restricted system call capabilities
bash
# Example: Restrict control panel access via .htaccess (Apache)
<Location "/admin">
    Require ip 10.0.0.0/8
    Require ip 192.168.1.0/24
</Location>

# Example: Restrict control panel access via nginx
location /admin {
    allow 10.0.0.0/8;
    allow 192.168.1.0/24;
    deny all;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechCraft Cms

  • SeverityHIGH

  • CVSS Score8.6

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • 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
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-470
  • Technical References
  • GitHub Release Version 5.9.13
  • Vendor Resources
  • GitHub Commit Changes

  • GitHub Security Advisory GHSA-2fph-6v5w-89hh
  • Related CVEs
  • CVE-2026-32264: Craft CMS Behavior Injection RCE Vulnerability

  • CVE-2026-32261: Webhooks for Craft CMS RCE Vulnerability

  • CVE-2026-31857: Craft CMS RCE Vulnerability

  • CVE-2026-28783: Craft CMS RCE Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English