A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2021-47976

CVE-2021-47976: TextPattern CMS 4.9.0-dev RCE Vulnerability

CVE-2021-47976 is a remote code execution vulnerability in TextPattern CMS 4.9.0-dev that allows authenticated attackers to upload malicious PHP files. This article covers technical details, affected versions, and mitigation.

Published: May 21, 2026

CVE-2021-47976 Overview

CVE-2021-47976 affects TextPattern CMS version 4.9.0-dev and enables authenticated remote code execution through the plugin upload functionality. Attackers with valid credentials can retrieve a Cross-Site Request Forgery (CSRF) token from the plugin event page and upload arbitrary PHP files to the textpattern/tmp/ directory. Once uploaded, the attacker can request the file directly to execute arbitrary PHP code on the server. The weakness is categorized under [CWE-352] (Cross-Site Request Forgery), though the practical impact is full code execution on the underlying host.

Critical Impact

Authenticated attackers can achieve full remote code execution on the web server by abusing the plugin upload feature, leading to complete compromise of the CMS host.

Affected Products

  • TextPattern CMS 4.9.0-dev
  • Installations exposing the plugin event page to authenticated users
  • Web servers hosting TextPattern with writable textpattern/tmp/ directories

Discovery Timeline

  • 2026-05-16 - CVE-2021-47976 published to the National Vulnerability Database (NVD)
  • 2026-05-18 - Last updated in NVD database

Technical Details for CVE-2021-47976

Vulnerability Analysis

The vulnerability resides in the plugin upload workflow exposed by the TextPattern administrative interface. The plugin event page issues a CSRF token, but the upload handler does not enforce sufficient validation on the uploaded file's type or content. An authenticated user can submit a multipart request containing a PHP payload, and the application writes the file to textpattern/tmp/ without restricting executable content. The attacker then issues an HTTP request to the uploaded PHP file, causing the web server to execute the payload under the server process context. Reference details are documented in the VulnCheck Advisory for Textpattern and Exploit-DB #50095.

Root Cause

The root cause is insufficient validation of plugin file uploads. The plugin handler trusts authenticated input and allows arbitrary file extensions, including PHP, to land in a directory served by the web server. The CSRF token requirement is the only meaningful gate, which any authenticated attacker can satisfy by parsing the plugin event page.

Attack Vector

The attack requires network access to the administrative interface and a valid authenticated session with privileges to access the plugin event page. The attacker performs three operations: authenticate to TextPattern, fetch the CSRF token from the plugin page, and submit a crafted multipart upload containing PHP source. Execution is triggered by requesting the dropped file under textpattern/tmp/.

No verified proof-of-concept code is reproduced here. Technical details and exploitation steps are available in the Exploit-DB entry #50095.

Detection Methods for CVE-2021-47976

Indicators of Compromise

  • Unexpected PHP files present in the textpattern/tmp/ directory or other web-accessible upload paths
  • HTTP POST requests to plugin upload endpoints originating from unusual source IPs or user agents
  • Outbound network connections from the web server process immediately following plugin upload activity
  • New administrator sessions followed by access to the plugin event page outside normal maintenance windows

Detection Strategies

  • Monitor web server access logs for POST requests to plugin upload URLs followed by GET requests to files in textpattern/tmp/
  • Implement file integrity monitoring on the textpattern/ directory tree to identify new or modified PHP files
  • Inspect uploaded files for PHP tags or known web shell signatures before they are written to disk

Monitoring Recommendations

  • Enable verbose authentication logging on the TextPattern admin interface and alert on privileged actions
  • Correlate web server process spawns of shells, curl, wget, or php interpreters with preceding HTTP requests
  • Forward web and host telemetry to a centralized logging platform for retrospective hunting against known IOCs

How to Mitigate CVE-2021-47976

Immediate Actions Required

  • Restrict access to the TextPattern admin interface to trusted IP ranges or place it behind a VPN
  • Audit existing administrator accounts and rotate credentials for any account with plugin management rights
  • Inspect textpattern/tmp/ and remove any unauthorized PHP files discovered during review
  • Disable plugin upload functionality in production until a fixed release or hardening is applied

Patch Information

TextPattern 4.9.0-dev is a development branch. Operators should upgrade to a stable release that addresses the plugin upload validation gap. Track release notes via the GitHub Textpattern Repository and the Textpattern Official Site for current versions and security fixes.

Workarounds

  • Configure the web server to deny execution of PHP files inside textpattern/tmp/ using directory-level handler restrictions
  • Enforce strict file extension allowlists at a Web Application Firewall (WAF) for all multipart uploads
  • Require multi-factor authentication for administrative accounts to raise the cost of credential abuse
bash
# Apache: deny PHP execution within the tmp directory
<Directory "/var/www/textpattern/textpattern/tmp">
    php_flag engine off
    <FilesMatch "\.(php|phtml|phar)$">
        Require all denied
    </FilesMatch>
</Directory>

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechTextpattern

  • SeverityHIGH

  • CVSS Score8.7

  • EPSS Probability0.10%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/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-352
  • Technical References
  • GitHub Textpattern Repository

  • Textpattern Official Site

  • Exploit-DB #50095

  • VulnCheck Advisory for Textpattern
  • Related CVEs
  • CVE-2021-47943: TextPattern CMS 4.8.7 RCE Vulnerability

  • CVE-2021-47888: Textpattern CMS RCE Vulnerability

  • CVE-2026-30452: Textpattern CMS Auth Bypass Vulnerability

  • CVE-2026-5344: Textpattern Path Traversal Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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