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

CVE-2021-24145: Modern Events Calendar Lite File Upload

CVE-2021-24145 is a file upload vulnerability in Modern Events Calendar Lite WordPress plugin that allows administrators to upload malicious PHP files. This article covers technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2021-24145 Overview

CVE-2021-24145 is an arbitrary file upload vulnerability affecting the Modern Events Calendar Lite WordPress plugin developed by Webnus. Versions prior to 5.16.5 contain a flaw in the file import functionality that fails to properly validate uploaded files. This allows authenticated administrators to upload PHP files by manipulating the Content-Type header to text/csv in the request, effectively bypassing the intended file type restrictions.

Critical Impact

This vulnerability enables remote code execution on affected WordPress installations, allowing attackers with administrator access to upload malicious PHP web shells and gain persistent server access.

Affected Products

  • Webnus Modern Events Calendar Lite versions prior to 5.16.5
  • WordPress installations using the vulnerable plugin versions

Discovery Timeline

  • 2021-03-18 - CVE-2021-24145 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-24145

Vulnerability Analysis

This vulnerability is classified as CWE-434 (Unrestricted Upload of File with Dangerous Type). The root issue lies in how the plugin's import functionality processes uploaded files. The application relies on the Content-Type header sent by the client to determine file type validity rather than performing server-side inspection of the actual file contents. This client-side trust model creates a significant security gap that can be exploited by attackers with administrative privileges.

When an administrator uploads a file through the import feature, the server accepts the Content-Type header at face value. By setting this header to text/csv, an attacker can upload a PHP file that the server will then save to a web-accessible location, enabling arbitrary code execution.

Root Cause

The vulnerability stems from improper input validation in the file upload handler. The plugin fails to implement proper file type verification mechanisms such as:

  • Server-side MIME type detection using file signatures (magic bytes)
  • File extension whitelisting with strict validation
  • Content inspection to verify file structure matches expected format

Instead, the plugin trusts the user-supplied Content-Type header, which can be trivially manipulated using tools like Burp Suite, curl, or browser developer tools.

Attack Vector

The attack requires network access and high privileges (administrator role). An attacker who has obtained administrator credentials—through credential theft, brute force, or social engineering—can exploit this vulnerability through the following process:

  1. Authenticate to WordPress with administrator credentials
  2. Navigate to the Modern Events Calendar import functionality
  3. Prepare a malicious PHP web shell file
  4. Intercept the upload request and modify the Content-Type header to text/csv
  5. Submit the request with the PHP payload
  6. Access the uploaded PHP file to execute arbitrary commands on the server

The attack does not require user interaction once the attacker has administrator access, and the scope is unchanged from the vulnerable component.

Detection Methods for CVE-2021-24145

Indicators of Compromise

  • Unexpected PHP files in WordPress upload directories, particularly within plugin folders
  • Web server logs showing requests to unusual PHP files in the uploads or plugin directories
  • Modified Content-Type headers in HTTP requests to the Modern Events Calendar import endpoint
  • Suspicious outbound network connections originating from the web server process

Detection Strategies

  • Monitor file system changes in WordPress directories, especially for new PHP files outside of expected update patterns
  • Implement Web Application Firewall (WAF) rules to detect Content-Type header manipulation attempts
  • Review web server access logs for POST requests to the plugin's import functionality followed by GET requests to newly created PHP files
  • Deploy file integrity monitoring on WordPress installations to detect unauthorized file additions

Monitoring Recommendations

  • Configure alerts for new PHP file creation in WordPress upload and plugin directories
  • Monitor for web shells and backdoor patterns using signature-based detection tools
  • Implement logging for all administrative actions within WordPress, particularly file uploads
  • Use SentinelOne's Singularity Platform to detect post-exploitation behaviors such as command execution from web server processes

How to Mitigate CVE-2021-24145

Immediate Actions Required

  • Update Modern Events Calendar Lite to version 5.16.5 or later immediately
  • Audit WordPress upload directories for any suspicious PHP files that may have been uploaded
  • Review administrator account access and ensure strong, unique credentials are in use
  • Enable multi-factor authentication for all WordPress administrator accounts
  • Consider temporarily disabling the import functionality until patching is complete

Patch Information

Webnus has addressed this vulnerability in Modern Events Calendar Lite version 5.16.5. The patch implements proper server-side file validation that no longer relies solely on the client-supplied Content-Type header. For detailed vulnerability information, see the WPScan Vulnerability Report.

Additional technical details and exploit information are available via Packet Storm Shell Upload Exploit and Packet Storm RCE Vulnerability.

Workarounds

  • Restrict administrative access to trusted IP addresses using .htaccess or web server configuration
  • Implement a Web Application Firewall (WAF) with rules to block suspicious file upload attempts
  • Disable the import functionality in the plugin settings if not required for operations
  • Regularly audit user accounts with administrative privileges and remove unnecessary access

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechWebnus

  • SeverityHIGH

  • CVSS Score7.2

  • EPSS Probability92.34%

  • 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-434
  • Technical References
  • Packet Storm Shell Upload Exploit

  • Packet Storm RCE Vulnerability

  • WPScan Vulnerability Report
  • Related CVEs
  • CVE-2024-5441: Modern Events Calendar RCE Vulnerability

  • CVE-2021-24946: Modern Events Calendar Lite SQLi Flaw

  • CVE-2021-24146: Modern Events Calendar Lite Disclosure Flaw
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