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-2021-24209

CVE-2021-24209: WP Super Cache RCE Vulnerability

CVE-2021-24209 is a remote code execution flaw in WP Super Cache WordPress plugin that allows authenticated admins to inject malicious code. This post covers technical details, affected versions, impact, and mitigation.

Published: February 25, 2026

CVE-2021-24209 Overview

CVE-2021-24209 is an authenticated Remote Code Execution (RCE) vulnerability affecting the WP Super Cache WordPress plugin before version 1.7.2. The vulnerability exists in the settings page due to inadequate input validation and a weak $cache_path check in the WP Super Cache Settings -> Cache Location option. Because direct access to the wp-cache-config.php file is not prohibited, attackers with administrative privileges can exploit this flaw to inject a web shell, gaining persistent remote code execution on the affected WordPress installation.

Critical Impact

Authenticated administrators can achieve remote code execution by injecting malicious PHP code into the cache configuration file, potentially compromising the entire WordPress installation and underlying server.

Affected Products

  • Automattic WP Super Cache versions prior to 1.7.2
  • WordPress installations running vulnerable WP Super Cache plugin

Discovery Timeline

  • 2021-04-05 - CVE CVE-2021-24209 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-24209

Vulnerability Analysis

This vulnerability is classified as CWE-94 (Improper Control of Generation of Code / Code Injection). The flaw stems from the plugin's failure to properly validate and sanitize user input in the Cache Location settings field. When an authenticated administrator modifies the cache path setting, the plugin writes this value to the wp-cache-config.php configuration file without adequate security checks.

The weak $cache_path validation allows an attacker to craft a malicious input that, when written to the configuration file, results in executable PHP code being stored on the server. Since the wp-cache-config.php file is directly accessible and not protected from execution, any injected PHP code will be executed when the file is accessed, effectively creating a web shell.

This vulnerability requires administrative-level authentication to exploit, which limits the attack surface but still presents significant risk in scenarios involving compromised admin credentials, insider threats, or privilege escalation chains.

Root Cause

The root cause is twofold: insufficient input validation on the Cache Location option field and the lack of access restrictions on the wp-cache-config.php file. The plugin fails to properly sanitize special characters and PHP syntax from user-supplied input before writing it to the configuration file. Additionally, the configuration file remains directly accessible via web requests, allowing injected code to execute.

Attack Vector

The attack vector is network-based and requires an authenticated administrator session. An attacker must first gain access to a WordPress administrator account, then navigate to the WP Super Cache Settings page. By manipulating the Cache Location field with specially crafted input containing PHP code, the malicious payload is written to wp-cache-config.php. The attacker can then directly access this file via a web request to trigger execution of the injected code, establishing a web shell for persistent access and arbitrary command execution.

The vulnerability does not require user interaction beyond the attacker's own actions and can be exploited with low complexity once administrative access is obtained. The impact includes complete confidentiality, integrity, and availability compromise of the affected system.

Detection Methods for CVE-2021-24209

Indicators of Compromise

  • Unexpected modifications to wp-cache-config.php file, especially containing PHP code execution functions such as eval(), exec(), system(), or passthru()
  • Unusual HTTP requests directly accessing wp-cache-config.php from external IP addresses
  • Presence of web shell artifacts or suspicious PHP files in the cache directory
  • Unexpected administrative activity or changes to WP Super Cache settings

Detection Strategies

  • Monitor WordPress admin panel access logs for suspicious activity in WP Super Cache settings pages
  • Implement file integrity monitoring (FIM) on critical WordPress files including wp-cache-config.php
  • Utilize web application firewalls (WAF) with rules to detect PHP code injection patterns in POST requests
  • Review server access logs for direct requests to configuration files that should not be accessed directly

Monitoring Recommendations

  • Enable audit logging for all WordPress administrative actions and plugin configuration changes
  • Configure alerts for file modifications in WordPress plugin directories
  • Monitor for outbound network connections from the web server that may indicate reverse shell activity
  • Implement SentinelOne endpoint detection for real-time monitoring of suspicious process execution and file system changes

How to Mitigate CVE-2021-24209

Immediate Actions Required

  • Update WP Super Cache to version 1.7.2 or later immediately
  • Audit all WordPress administrator accounts and revoke any compromised or unnecessary admin access
  • Review wp-cache-config.php for signs of tampering or injected code
  • Implement strong authentication measures including multi-factor authentication for all admin accounts

Patch Information

Automattic has addressed this vulnerability in WP Super Cache version 1.7.2. The patch improves input validation for the Cache Location option and strengthens the $cache_path security checks. Users should update to the latest version through the WordPress plugin update mechanism. The specific code changes can be reviewed in the WordPress Plugin Change Log. Additional vulnerability details are available in the WPScan Vulnerability Report.

Workarounds

  • Restrict access to the WordPress admin panel to trusted IP addresses only using .htaccess or server-level firewall rules
  • Add server configuration to prevent direct access to wp-cache-config.php via web requests
  • Temporarily disable the WP Super Cache plugin until the update can be applied
  • Implement file permission restrictions to make configuration files read-only where possible
bash
# Block direct access to wp-cache-config.php via .htaccess
<Files "wp-cache-config.php">
    Order Allow,Deny
    Deny from all
</Files>

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechAutomattic Wp Super Cache

  • SeverityHIGH

  • CVSS Score7.2

  • EPSS Probability2.35%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-94
  • Technical References
  • WPScan Vulnerability Report
  • Vendor Resources
  • WordPress Plugin Change Log
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs 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