Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-28784

CVE-2026-28784: Craft CMS Twig Filter RCE Vulnerability

CVE-2026-28784 is a remote code execution vulnerability in Craft CMS caused by malicious Twig map filter payloads. Attackers with admin access can exploit this flaw. This article covers technical details, affected versions, and patches.

Published: March 6, 2026

CVE-2026-28784 Overview

CVE-2026-28784 is a Remote Code Execution (RCE) vulnerability affecting Craft CMS, a popular content management system. The vulnerability exists in the handling of the Twig template engine's map filter within text fields that accept Twig input. Specifically, attackers with administrative access to the Craft Control Panel or access to the System Messages utility can craft malicious payloads that lead to arbitrary code execution on the underlying server.

The vulnerability requires either administrator access with allowAdminChanges enabled, or non-administrator access to the System Messages utility. While this limits the attack surface to authenticated users with specific privileges, successful exploitation grants full server-side code execution capabilities.

Critical Impact

Authenticated attackers can achieve Remote Code Execution through malicious Twig template payloads, potentially leading to complete server compromise, data exfiltration, and lateral movement within the network.

Affected Products

  • Craft CMS versions prior to 5.8.22 (5.x branch)
  • Craft CMS versions prior to 4.16.18 (4.x branch)
  • Craft CMS versions 4.0.0 through 4.16.17 (including RC releases)
  • Craft CMS versions 5.0.0 through 5.8.21 (including RC releases)

Discovery Timeline

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

Technical Details for CVE-2026-28784

Vulnerability Analysis

This vulnerability is classified as CWE-1336 (Improper Neutralization of Special Elements Used in a Template Engine). The Craft CMS platform utilizes the Twig templating engine to provide flexible content rendering capabilities. Within the Craft Control Panel, certain text fields under Settings and the System Messages utility accept Twig template syntax, enabling administrators to create dynamic content.

The flaw exists in how the Twig map filter processes user-supplied input. The map filter applies an arrow function to each element of a sequence, and insufficient sanitization of the callback logic allows attackers to inject and execute arbitrary PHP code within the template context.

The vulnerability can be exploited through two attack paths: administrators with allowAdminChanges enabled (which Craft CMS recommends disabling in production), or non-administrators who have been granted access to the System Messages utility. Once a malicious Twig payload is processed, arbitrary server-side code execution occurs.

Root Cause

The root cause is improper neutralization of special elements within the Twig template engine's map filter implementation. When user-supplied Twig templates containing the map filter are processed, the filter's callback mechanism does not adequately restrict or sanitize code execution paths, allowing injection of malicious PHP functions or system commands.

Attack Vector

The attack is network-based and requires authentication to the Craft CMS Control Panel. An attacker must have either administrator privileges with allowAdminChanges enabled, or access to the System Messages utility as a non-administrator user.

The exploitation flow involves:

  1. Authenticating to the Craft CMS Control Panel
  2. Navigating to a Twig-enabled text field (Settings section or System Messages utility)
  3. Injecting a malicious payload using the Twig map filter with embedded code execution primitives
  4. Triggering template processing to execute the payload on the server

The map filter accepts arrow functions that can be crafted to invoke dangerous PHP functions, enabling command execution, file manipulation, or other server-side operations. Successful exploitation results in full server compromise within the context of the web server user.

Detection Methods for CVE-2026-28784

Indicators of Compromise

  • Unusual or unexpected Twig template content in the Control Panel Settings or System Messages
  • Access logs showing repeated modifications to System Messages or Settings fields by privileged users
  • Web application firewall logs containing Twig syntax with suspicious arrow functions or filter chains
  • Unexpected process executions or network connections originating from the web server process
  • Newly created or modified files outside of expected Craft CMS directories

Detection Strategies

  • Monitor Control Panel audit logs for modifications to Twig-enabled fields by any user
  • Implement file integrity monitoring on Craft CMS configuration and template directories
  • Deploy web application firewall rules to detect Twig injection patterns, particularly the map filter with arrow function syntax
  • Review access logs for anomalous authentication patterns to the Craft CMS Control Panel

Monitoring Recommendations

  • Enable comprehensive logging for all Craft CMS Control Panel administrative actions
  • Configure alerting for any changes to System Messages or Settings fields
  • Monitor web server processes for unexpected child processes or outbound connections
  • Implement runtime application self-protection (RASP) to detect and block template injection attacks

How to Mitigate CVE-2026-28784

Immediate Actions Required

  • Update Craft CMS to version 5.8.22 or later for 5.x installations
  • Update Craft CMS to version 4.16.18 or later for 4.x installations
  • Set allowAdminChanges to false in production environments immediately
  • Audit user accounts with access to the System Messages utility and restrict to necessary personnel only
  • Review recent changes to Settings and System Messages for any suspicious content

Patch Information

Craft CMS has released security patches in versions 5.8.22 and 4.16.18 that address this vulnerability. The fixes are detailed in GitHub Pull Request #18208. Users should update to these patched versions immediately.

For additional technical details and security guidance, refer to the GitHub Security Advisory GHSA-qc86-q28f-ggww and the Craft CMS Security Guide.

Workarounds

  • Disable allowAdminChanges in your config/general.php by setting it to false for all non-development environments
  • Restrict access to the System Messages utility to only essential personnel
  • Implement network-level access controls to limit Control Panel access to trusted IP ranges
  • Consider temporarily disabling Twig template processing in user-modifiable fields until patches can be applied
bash
# Configuration example for config/general.php
# Set allowAdminChanges to false in production
'allowAdminChanges' => false,

# Restrict Control Panel access by IP (in your web server config)
# Example for nginx:
# location /admin {
#     allow 10.0.0.0/8;
#     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-1336
  • Technical References
  • Craft CMS Security Guide
  • Vendor Resources
  • GitHub Pull Request #18208

  • GitHub Security Advisory GHSA-qc86-q28f-ggww
  • 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
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