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-28695

CVE-2026-28695: Craftcms Craft CMS RCE Vulnerability

CVE-2026-28695 is an authenticated admin RCE vulnerability in Craftcms Craft CMS 5.8.21 via Server-Side Template Injection. This article covers the technical details, affected versions, security impact, and mitigation strategies.

Published: March 6, 2026

CVE-2026-28695 Overview

CVE-2026-28695 is a Server-Side Template Injection (SSTI) vulnerability affecting Craft CMS, a popular content management system. This vulnerability allows authenticated administrators to achieve Remote Code Execution (RCE) by exploiting the create() Twig function in combination with a Symfony Process gadget chain. The flaw represents a bypass of the security fix implemented for CVE-2025-57811 (patched in version 5.8.7).

The create() Twig function exposes Craft::createObject(), which permits instantiation of arbitrary PHP classes with constructor arguments. When combined with the bundled symfony/process dependency, attackers with admin-level access can execute arbitrary code on the underlying server.

Critical Impact

Authenticated administrators can achieve full Remote Code Execution on affected Craft CMS installations, potentially leading to complete server compromise, data exfiltration, and lateral movement within the network.

Affected Products

  • Craft CMS version 5.8.21 and earlier versions in the 5.x branch (prior to 5.9.0-beta.1)
  • Craft CMS 4.x versions (prior to 4.17.0-beta.1)
  • Any Craft CMS installation using the bundled symfony/process dependency

Discovery Timeline

  • March 4, 2026 - CVE-2026-28695 published to NVD
  • March 5, 2026 - Last updated in NVD database

Technical Details for CVE-2026-28695

Vulnerability Analysis

This vulnerability is classified under CWE-1336 (Improper Neutralization of Special Elements Used in a Template Engine), representing a Server-Side Template Injection attack vector. The attack requires network access and high privileges (administrative authentication), but once those conditions are met, exploitation can lead to complete compromise of confidentiality, integrity, and availability on the vulnerable system.

The core issue lies in how Craft CMS handles object instantiation through its Twig template engine. The create() function was designed to provide flexibility for template authors but inadvertently creates a pathway for code execution when combined with vulnerable PHP class instantiation patterns.

Root Cause

The root cause of this vulnerability stems from the exposure of Craft::createObject() through the create() Twig function. This method allows arbitrary PHP class instantiation with user-controlled constructor arguments. While the previous fix for CVE-2025-57811 attempted to address this issue, the mitigation was incomplete, allowing attackers to discover an alternative exploitation path using the Symfony Process gadget chain.

The bundled symfony/process dependency provides the necessary components for attackers to chain together class instantiations that ultimately result in command execution. This represents a classic gadget chain attack pattern commonly seen in PHP deserialization and object injection vulnerabilities.

Attack Vector

The attack requires authenticated administrative access to the Craft CMS control panel. An attacker with these privileges can craft malicious Twig template code that:

  1. Utilizes the create() Twig function to instantiate arbitrary PHP classes
  2. Leverages constructor arguments to pass attacker-controlled data
  3. Chains the Symfony Process class instantiation to achieve command execution
  4. Executes arbitrary system commands on the underlying server

The vulnerability exploits the trust boundary between template rendering and core PHP functionality, allowing template-level code to break out of the sandboxed template environment and interact directly with system-level operations.

Detection Methods for CVE-2026-28695

Indicators of Compromise

  • Unusual Twig template modifications containing create() function calls with suspicious class names
  • Web server logs showing administrative panel access followed by unexpected system process spawns
  • Audit logs indicating template editing activity by compromised or malicious admin accounts
  • Unexpected child processes spawned by PHP-FPM or web server processes

Detection Strategies

  • Monitor Craft CMS template files for unauthorized modifications, particularly those containing create() function calls
  • Implement file integrity monitoring on Twig template directories
  • Review administrative audit logs for unusual template editing patterns
  • Deploy endpoint detection to identify suspicious process execution chains originating from web server processes

Monitoring Recommendations

  • Enable comprehensive logging for Craft CMS administrative actions
  • Implement real-time alerting for template modifications in production environments
  • Monitor for PHP process spawning unexpected child processes such as shell commands
  • Review access patterns for administrative accounts to detect potential credential compromise

How to Mitigate CVE-2026-28695

Immediate Actions Required

  • Upgrade Craft CMS 5.x installations to version 5.9.0-beta.1 or later immediately
  • Upgrade Craft CMS 4.x installations to version 4.17.0-beta.1 or later
  • Conduct an immediate audit of all administrative user accounts and revoke unnecessary privileges
  • Review recent template modifications for potentially malicious code

Patch Information

The vulnerability has been fixed in Craft CMS versions 5.9.0-beta.1 and 4.17.0-beta.1. The patch addresses the incomplete mitigation from CVE-2025-57811 by implementing additional restrictions on the create() Twig function to prevent arbitrary class instantiation with dangerous constructor arguments.

Security patches and commit details are available in the GitHub Security Advisory GHSA-94rc-cqvm-m4pw. The specific fix can be reviewed in the GitHub Commit e31e508.

Workarounds

  • Restrict administrative access to trusted IP addresses only using web server configuration or firewall rules
  • Implement additional authentication factors for administrative accounts
  • Disable template editing capabilities in production environments where possible
  • Consider implementing a Web Application Firewall (WAF) rule to detect and block suspicious Twig template patterns
bash
# Example nginx configuration to restrict admin panel access by IP
location /admin {
    allow 10.0.0.0/8;
    allow 192.168.1.0/24;
    deny all;
    
    # Standard proxy pass 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 Score7.5

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/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-1336
  • Vendor Resources
  • GitHub Commit e31e508

  • GitHub Security Advisory GHSA-94rc-cqvm-m4pw
  • Related CVEs
  • CVE-2026-33157: Craftcms Craft CMS RCE Vulnerability

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