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

CVE-2021-47943: TextPattern CMS 4.8.7 RCE Vulnerability

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

Published: May 18, 2026

CVE-2021-47943 Overview

CVE-2021-47943 is a remote code execution vulnerability in TextPattern CMS 4.8.7. Authenticated attackers can upload arbitrary PHP files through the Files section in the content area. The uploaded payloads become directly accessible under /textpattern/files/, where attackers pass GET parameters to PHP functions such as system to execute operating system commands. The flaw is classified as Unrestricted Upload of File with Dangerous Type [CWE-434]. Public exploitation techniques are documented in Exploit-DB entries 49996 and 50415, making this a well-understood post-authentication attack against TextPattern deployments.

Critical Impact

Authenticated attackers can achieve arbitrary command execution on the underlying web server, leading to full compromise of the TextPattern CMS host.

Affected Products

  • TextPattern CMS 4.8.7
  • TextPattern CMS deployments exposing the /textpattern/files/ directory
  • Web servers hosting TextPattern with PHP execution enabled in the files upload directory

Discovery Timeline

  • 2026-05-10 - CVE-2021-47943 published to the National Vulnerability Database (NVD)
  • 2026-05-12 - Last updated in NVD database

Technical Details for CVE-2021-47943

Vulnerability Analysis

The vulnerability resides in the file upload functionality available in the TextPattern administrative interface. An authenticated user with access to the Content > Files section can upload files without sufficient restrictions on file type or executable content. The application accepts PHP source files and stores them inside a web-accessible directory served by the same PHP interpreter that powers the CMS.

Once uploaded, the attacker requests the file directly at /textpattern/files/<filename>.php. The PHP runtime executes the attacker-controlled script, including any calls to dangerous functions such as system, exec, passthru, or shell_exec. GET parameters supplied in the request are passed straight into these functions, giving the attacker an interactive command channel.

Root Cause

The root cause is missing validation and enforcement around uploaded file types and execution context. TextPattern 4.8.7 does not block PHP extensions on upload and does not deny PHP execution within the files directory at the web server or application layer, satisfying the conditions described by [CWE-434].

Attack Vector

Exploitation requires valid authenticated credentials with permission to upload files. The attacker logs into the TextPattern admin panel, navigates to the Files section, and uploads a PHP webshell. The attacker then issues an HTTP GET request to /textpattern/files/shell.php?cmd=<command>, and the server returns the command output. Network access to the admin interface is the only additional prerequisite. Technical details and proof-of-concept payloads are available in the Exploit-DB #49996 and Exploit-DB #50415 entries, as well as the VulnCheck Advisory for Textpattern CMS.

Detection Methods for CVE-2021-47943

Indicators of Compromise

  • New or unexpected .php, .phtml, or .phar files appearing under the /textpattern/files/ directory
  • HTTP GET requests to /textpattern/files/ paths containing query parameters such as cmd=, c=, or shell-like command strings
  • Web server processes (php-fpm, apache2, httpd, nginx) spawning child processes such as sh, bash, cmd.exe, whoami, or id
  • Authenticated TextPattern sessions originating from unusual geolocations followed by file upload events in application logs

Detection Strategies

  • Inspect web access logs for requests to /textpattern/files/*.php with query string parameters and correlate them with prior authenticated upload activity
  • Monitor the file system for creation of executable script files within the TextPattern uploads directory using integrity monitoring
  • Alert on the web server user account spawning interactive shells or system reconnaissance commands

Monitoring Recommendations

  • Enable verbose application logging in TextPattern to capture file upload events with username, filename, and source IP
  • Forward web server, file integrity, and process telemetry to a centralized analytics platform for correlation
  • Baseline normal upload activity and alert on deviations such as PHP file extensions or large numbers of uploads from a single account

How to Mitigate CVE-2021-47943

Immediate Actions Required

  • Upgrade TextPattern CMS to a version newer than 4.8.7 that addresses the file upload validation issue
  • Restrict access to the TextPattern administrative interface using network controls, VPN, or IP allowlisting
  • Rotate all administrative credentials and review accounts with file upload permissions for least privilege
  • Audit the /textpattern/files/ directory for unauthorized scripts and remove any suspicious files

Patch Information

Review the VulnCheck Advisory for Textpattern CMS for fixed version guidance, and apply the latest TextPattern release available from the vendor. After upgrading, verify that PHP execution is no longer permitted within user upload directories.

Workarounds

  • Configure the web server to deny execution of PHP and other server-side scripts under /textpattern/files/, for example using Apache <Directory> rules or an Nginx location block that returns 403
  • Enforce an allowlist of permitted file extensions and validate MIME types at the application layer
  • Apply multi-factor authentication on the TextPattern admin panel to reduce the risk of credential abuse leading to upload
bash
# Apache: deny PHP execution inside the TextPattern files directory
<Directory "/var/www/textpattern/files">
    php_admin_flag engine off
    <FilesMatch "\.(php|phtml|phar)$">
        Require all denied
    </FilesMatch>
</Directory>

# Nginx equivalent
location ^~ /textpattern/files/ {
    location ~ \.(php|phtml|phar)$ {
        deny all;
        return 403;
    }
}

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

  • 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-434
  • Technical References
  • Exploit-DB #49996

  • Exploit-DB #50415

  • VulnCheck Advisory for Textpattern CMS
  • Related CVEs
  • 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 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