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-2023-41892

CVE-2023-41892: Craftcms Craft CMS RCE Vulnerability

CVE-2023-41892 is a remote code execution flaw in Craftcms Craft CMS that poses a high-impact, low-complexity attack risk. This article covers the technical details, affected versions before 4.4.15, and mitigation steps.

Published: February 11, 2026

CVE-2023-41892 Overview

CVE-2023-41892 is a critical Remote Code Execution (RCE) vulnerability affecting Craft CMS, a popular platform for creating digital experiences. This vulnerability allows unauthenticated attackers to execute arbitrary code on affected Craft CMS installations through improper handling of configuration parameters in the conditions controller. The attack requires no user interaction and can be exploited remotely over the network, making it a high-impact, low-complexity attack vector.

Critical Impact

Unauthenticated attackers can achieve complete system compromise through remote code execution, potentially leading to data theft, server takeover, and lateral movement within the network.

Affected Products

  • Craft CMS versions prior to 4.4.15
  • All Craft CMS 4.x installations running vulnerable versions
  • Web servers hosting unpatched Craft CMS deployments

Discovery Timeline

  • September 13, 2023 - CVE-2023-41892 published to NVD
  • July 3, 2023 - Craft CMS releases security patch in version 4.4.15
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2023-41892

Vulnerability Analysis

This vulnerability (CWE-94: Improper Control of Generation of Code - Code Injection) exists in how Craft CMS processes configuration parameters through its conditions controller. The core issue lies in the application's failure to properly sanitize configuration arrays before processing them, allowing attackers to inject malicious event handlers or behaviors through specially crafted on X or as X configuration keys.

When user-supplied configuration data is passed to the ConditionsController.php without adequate sanitization, attackers can leverage Yii2's event/behavior system to execute arbitrary PHP code. The framework allows defining event handlers and behaviors through array configurations, and without proper cleansing, these become vectors for code injection.

Root Cause

The vulnerability stems from insufficient input validation in the conditions controller, where JSON-decoded configuration parameters were processed without filtering dangerous keys. Specifically, Yii2-based applications like Craft CMS allow objects to be configured with event handlers (on eventName) and behaviors (as behaviorName) through array configurations. The absence of a sanitization mechanism allowed attackers to inject these dangerous configuration keys and execute arbitrary code during object instantiation.

Attack Vector

The attack exploits the network-accessible conditions controller endpoint. An attacker sends a crafted HTTP request containing malicious configuration data with on X or as X keys embedded in the JSON payload. When Craft CMS processes this configuration to instantiate condition objects, the injected event handlers execute arbitrary PHP code with the privileges of the web server process. This requires no authentication, making every exposed Craft CMS instance a potential target.

php
// Patch from src/helpers/Component.php - The cleanseConfig function added in 4.4.15
// Source: https://github.com/craftcms/cms/commit/7359d18d46389ffac86c2af1e0cd59e37c298857

    /**
     * Cleanses a component config of any `on X` or `as X` keys.
     *
     * @param array $config
     * @return array
     * @since 4.4.15
     */
    public static function cleanseConfig(array $config): array
    {
        foreach ($config as $key => $value) {
            if (is_string($key) && (str_starts_with($key, 'on ') || str_starts_with($key, 'as '))) {
                unset($config[$key]);
                continue;
            }
            if (is_array($value)) {
                $config[$key] = static::cleanseConfig($value);
            }
        }
        return $config;
    }
php
// Patch from src/controllers/ConditionsController.php - Applying cleanseConfig to user input
// Source: https://github.com/craftcms/cms/commit/a270b928f3d34ad3bd953b81c304424edd57355e

        $this->requireCpRequest();

-        $baseConfig = Json::decodeIfJson($this->request->getBodyParam('config'));
+        $baseConfig = Component::cleanseConfig(Json::decodeIfJson($this->request->getBodyParam('config')));
        $config = Component::cleanseConfig($this->request->getBodyParam($baseConfig['name']));

Detection Methods for CVE-2023-41892

Indicators of Compromise

  • Unusual HTTP POST requests to /actions/conditions/* endpoints containing on or as keys in JSON payloads
  • Web server logs showing requests to the conditions controller from unexpected sources or with malformed configuration data
  • Unexpected PHP processes spawned by the web server or anomalous system commands executed under the web server user context
  • New or modified files in Craft CMS directories, particularly PHP files with suspicious content

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect and block requests containing on or as patterns in JSON request bodies targeting Craft CMS endpoints
  • Deploy endpoint detection solutions like SentinelOne to identify post-exploitation activities such as unauthorized process creation or file system modifications
  • Configure intrusion detection systems to alert on unusual traffic patterns to Craft CMS administrative or API endpoints
  • Establish baseline behavior for Craft CMS application processes and alert on deviations

Monitoring Recommendations

  • Enable detailed access logging for all Craft CMS endpoints and forward logs to a SIEM for correlation and analysis
  • Monitor for unexpected outbound connections from web servers that could indicate command-and-control communication following exploitation
  • Set up file integrity monitoring for Craft CMS installation directories to detect unauthorized modifications
  • Review web server error logs for PHP errors or exceptions that may indicate exploitation attempts

How to Mitigate CVE-2023-41892

Immediate Actions Required

  • Upgrade all Craft CMS installations to version 4.4.15 or later immediately
  • Audit web server logs for potential exploitation attempts targeting the conditions controller endpoints
  • Conduct a security review of affected systems to identify any signs of compromise
  • Consider temporarily restricting access to Craft CMS administrative endpoints via network-level controls until patching is complete

Patch Information

Craft CMS has released version 4.4.15 which addresses this vulnerability through multiple security commits. The fix introduces a cleanseConfig() function in src/helpers/Component.php that recursively removes any on X or as X keys from configuration arrays before they are processed. Additionally, the controller execution order was corrected in several controllers to ensure proper authentication checks run before any user-supplied data is processed.

For detailed patch information, see:

  • GitHub Changelog for 4.4.15
  • GitHub Security Advisory GHSA-4w8r-3xrw-v25g
  • GitHub Commit #7359d18

Workarounds

  • Deploy a WAF rule to block requests containing on or as patterns in request bodies targeting Craft CMS endpoints as a temporary measure
  • Restrict network access to Craft CMS administrative and API endpoints to trusted IP addresses only
  • If patching is not immediately possible, consider taking vulnerable Craft CMS installations offline until updates can be applied
  • Implement additional monitoring and alerting for any activity targeting the conditions controller
bash
# Example nginx configuration to restrict access to Craft CMS admin endpoints
# Add to server block configuration

location ~* ^/admin {
    # Allow only trusted IP addresses
    allow 192.168.1.0/24;
    allow 10.0.0.0/8;
    deny all;
    
    # Pass to PHP-FPM
    try_files $uri $uri/ /index.php?$query_string;
}

# Block suspicious patterns in request bodies (requires ngx_http_lua_module)
# location / {
#     access_by_lua_block {
#         ngx.req.read_body()
#         local body = ngx.req.get_body_data()
#         if body and (string.find(body, '"on ') or string.find(body, '"as ')) then
#             ngx.exit(403)
#         end
#     }
# }

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechCraftcms

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability93.94%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-94
  • Technical References
  • Packet Storm RCE Advisory

  • GitHub Changelog for 4.4.15
  • Vendor Resources
  • GitHub Commit Update #7359d18

  • GitHub Commit Update #a270b92

  • GitHub Commit Update #c0a37e15

  • GitHub Commit Diff #c0a37e15

  • GitHub Security Advisory GHSA-4w8r-3xrw-v25g
  • Related CVEs
  • CVE-2020-37071: CraftCMS vCard Plugin RCE Vulnerability

  • CVE-2026-33159: Craft CMS Auth Bypass Vulnerability

  • CVE-2026-31859: Craft CMS Reflected XSS Vulnerability

  • CVE-2026-29175: Craftcms Craft Commerce XSS Vulnerability
Default Legacy - Prefooter | 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