A Leader in the 2025 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Five years running.A Leader in the Gartner® Magic Quadrant™Read the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • 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
      Digital Forensics, IRR & Breach Readiness
    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
    • 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-25498

CVE-2026-25498: Craft CMS RCE Vulnerability

CVE-2026-25498 is a remote code execution flaw in Craft CMS that allows authenticated administrators to execute arbitrary system commands. This post explains its technical details, affected versions, impact, and mitigation steps.

Published: February 13, 2026

CVE-2026-25498 Overview

CVE-2026-25498 is a Remote Code Execution (RCE) vulnerability affecting Craft CMS, a popular platform for creating digital experiences. The vulnerability exists in the assembleLayoutFromPost() function within src/services/Fields.php, which fails to sanitize user-supplied configuration data before passing it to Craft::createObject(). This allows authenticated administrators to inject malicious Yii2 behavior configurations that execute arbitrary system commands on the server.

This vulnerability represents an unpatched variant of the behavior injection vulnerability addressed in CVE-2025-68455, affecting different endpoints through a separate code path.

Critical Impact

Authenticated administrators can achieve full server compromise through arbitrary command execution by exploiting unsanitized Yii2 behavior configurations.

Affected Products

  • Craft CMS versions 4.0.0-RC1 through 4.16.17
  • Craft CMS versions 5.0.0-RC1 through 5.8.21

Discovery Timeline

  • 2026-02-09 - CVE-2026-25498 published to NVD
  • 2026-02-09 - Last updated in NVD database

Technical Details for CVE-2026-25498

Vulnerability Analysis

This vulnerability is classified under CWE-470 (Use of Externally-Controlled Input to Select Classes or Code), commonly known as Object Injection or unsafe reflection. The flaw exists because the assembleLayoutFromPost() function directly processes JSON-encoded field layout configuration from POST request parameters without proper sanitization.

When Craft CMS processes field layout configurations, the system deserializes and passes the configuration directly to Craft::createObject(), which is Yii2's factory method for instantiating objects. Since Yii2 supports behavior configuration that can include callbacks and closures, an attacker with administrative privileges can craft malicious payloads that inject arbitrary behaviors with system command execution capabilities.

The vulnerability requires authenticated administrator access, limiting the attack surface. However, once exploited, it provides complete server-side code execution, potentially leading to full system compromise, data exfiltration, or lateral movement within the network.

Root Cause

The root cause is the absence of input sanitization on configuration data received from POST requests before object instantiation. The assembleLayoutFromPost() function retrieves the fieldLayout parameter from the request body and passes the decoded JSON directly to createLayout() without validating or cleansing potentially dangerous configuration attributes that Yii2's object factory method interprets as behavior configurations.

Attack Vector

The attack vector is network-based, requiring an authenticated session with administrator privileges. An attacker would:

  1. Authenticate as an administrator to the Craft CMS control panel
  2. Craft a malicious JSON payload containing Yii2 behavior configurations with embedded system commands
  3. Submit the payload via a POST request to an endpoint that processes field layouts
  4. The assembleLayoutFromPost() function passes the unsanitized configuration to Craft::createObject()
  5. Yii2 instantiates objects with the attacker-controlled behavior, executing arbitrary system commands
php
// Security patch in src/services/Fields.php
// Source: https://github.com/craftcms/cms/commit/395c64f0b80b507be1c862a2ec942eaacb353748

     public function assembleLayoutFromPost(?string $namespace = null): FieldLayout
     {
         $paramPrefix = $namespace ? rtrim($namespace, '.') . '.' : '';
-        $config = Json::decode(Craft::$app->getRequest()->getBodyParam($paramPrefix . 'fieldLayout'));
+        $config = ComponentHelper::cleanseConfig(Json::decode(Craft::$app->getRequest()->getBodyParam($paramPrefix . 'fieldLayout')));
         return $this->createLayout($config);
     }

The patch introduces ComponentHelper::cleanseConfig() to sanitize the decoded JSON configuration before passing it to createLayout(), removing potentially dangerous attributes that could be exploited for behavior injection.

Detection Methods for CVE-2026-25498

Indicators of Compromise

  • Unexpected POST requests to Craft CMS admin endpoints containing suspicious fieldLayout parameters with nested behavior configurations
  • Web server logs showing unusual JSON payloads with class, behaviors, or callback-related attributes in field layout submissions
  • Process execution anomalies where the web server process spawns unexpected child processes or system commands
  • File system modifications or new files created by the web server user outside normal application directories

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect and block POST requests containing Yii2 behavior injection patterns such as behaviors, __class, or serialized closure attributes
  • Monitor application logs for field layout submissions with abnormally large or complex JSON structures
  • Deploy runtime application self-protection (RASP) to detect and block dangerous object instantiation patterns
  • Configure endpoint detection to alert on process execution chains originating from PHP-FPM or web server processes

Monitoring Recommendations

  • Enable detailed access logging for all Craft CMS administrative endpoints
  • Implement file integrity monitoring on the Craft CMS installation directory
  • Configure alerts for any outbound network connections initiated by the web server process
  • Review administrator activity logs for unusual field layout modification patterns

How to Mitigate CVE-2026-25498

Immediate Actions Required

  • Upgrade Craft CMS to version 5.8.22 or later immediately
  • For Craft CMS 4.x deployments, apply the patch from commit 395c64f or upgrade to a patched version
  • Audit administrator accounts and remove any unnecessary administrative privileges
  • Review access logs for any suspicious POST activity targeting field layout endpoints

Patch Information

The vulnerability is fixed in Craft CMS version 5.8.22. The fix introduces proper sanitization of configuration data using ComponentHelper::cleanseConfig() before object instantiation. Security details are available in the GitHub Security Advisory GHSA-7jx7-3846-m7w7. The patched release is available at GitHub Release 5.8.22.

Workarounds

  • Restrict administrative access to trusted IP addresses only using firewall rules or web server configuration
  • Implement additional authentication factors for administrator accounts
  • Deploy a WAF with rules to block suspicious behavior configuration patterns in request bodies
  • Consider temporarily disabling administrative field layout modification features until patching is complete
bash
# Example: Restrict Craft CMS admin access by IP using nginx
location /admin {
    allow 10.0.0.0/8;
    allow 192.168.1.0/24;
    deny all;
    
    # Continue with existing PHP-FPM configuration
    try_files $uri $uri/ /index.php?$query_string;
}

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.12%

  • 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 Commit Update

  • GitHub Release 5.8.22

  • GitHub Security Advisory GHSA-7jx7-3846-m7w7
  • Related CVEs
  • CVE-2024-56145: Craft CMS Remote Code Execution Vulnerability

  • CVE-2025-23209: Craft CMS Remote Code Execution Vulnerability

  • CVE-2025-35939: Craft CMS RCE Vulnerability

  • CVE-2025-46731: Craft CMS Twig SSTI 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
  • English
  • 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