← Vulnerability feed

Vulnerability record · CVE-2021-24145 · published 18 March 2021

CVE-2021-24145: Modern Events Calendar Lite plugin arbitrary file upload via CSV import

Webnus · Modern Events Calendar Lite

The Modern Events Calendar Lite WordPress plugin before 5.16.5 failed to properly validate files during import, so a PHP file could be uploaded by sending it with a 'text/csv' content-type. Because the uploaded file is executable PHP, this turns a file-upload weakness into remote code execution on the WordPress host.

7.2 CVSS 3.1 High EPSS 87% · top 0.3% CWE-434 · Unrestricted file upload
7.2CVSS 3.1 base score, v2 6.5
87%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
6References, 6 tagged exploit
17 Jun 2026Last modified by NVD

Description

Arbitrary file upload in the Modern Events Calendar Lite WordPress plugin, versions before 5.16.5, did not properly check the imported file, allowing PHP ones to be uploaded by administrator by using the 'text/csv' content-type in the request.

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

high priorityThe flaw allows authenticated administrators to achieve remote code execution and public exploit code exists, but exploitation requires high privileges and the issue is not in CISA KEV.

What it is

The Modern Events Calendar Lite WordPress plugin before 5.16.5 failed to properly validate files during import, so a PHP file could be uploaded by sending it with a 'text/csv' content-type. Because the uploaded file is executable PHP, this turns a file-upload weakness into remote code execution on the WordPress host.

Impact

An attacker with administrator access can upload and execute arbitrary PHP, leading to full compromise of the WordPress site and potentially the underlying server.

Attack surface

Reached over the network through the plugin's import functionality; the CVSS vector requires high privileges (PR:H) and no user interaction (UI:N), so an authenticated administrator account is needed.

Exploitation

Public exploit code is referenced (Packet Storm shell upload and RCE write-ups, WPScan), and EPSS is very high at 0.872 (99.7th percentile), though the CVE is not listed in CISA KEV.

What to do

  • Update Modern Events Calendar Lite to 5.16.5 or later immediately.
  • If patching is not possible, disable or remove the plugin until it can be updated.
  • Restrict and audit administrator accounts; enforce least privilege and strong unique credentials.
  • Block uploads of PHP files at the web server or WAF layer regardless of declared content-type.
  • Review the uploads directory for unexpected .php files and disable PHP execution there.

Detection

  • Monitor the WordPress uploads directory for newly created .php or other executable files.
  • Alert on import requests carrying a 'text/csv' content-type that result in non-CSV file writes.
  • Audit administrator account activity and plugin import actions for anomalies.
  • Check web server logs for POST requests to the plugin's import endpoints followed by access to uploaded files.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2021-24145 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2021-4458Webnus modern events calendar lite sql injection vulnerabilityThe Modern Events Calendar Lite plugin for WordPress is vulnerable to SQL Injection via the 'id' parameter of the 'wp_ajax_mec_load_single_page' AJAX…EPSS 0.35%9.8CVE-2021-24946Modern Events Calendar Lite unauthenticated SQL injectionThe Modern Events Calendar Lite WordPress plugin before 6.1.5 does not sanitise or escape the time parameter before using it in a SQL statement withi…EPSS 73%analysed9.6CVE-2024-6522Webnus modern events calendar server-side request forgery (ssrf) vulnerabilityThe Modern Events Calendar plugin for WordPress is vulnerable to Server-Side Request Forgery in all versions up to, and including, 7.12.1 via the 'me…EPSS 0.40%8.8CVE-2024-5441Webnus modern events calendar unrestricted file upload vulnerabilityThe Modern Events Calendar plugin for WordPress is vulnerable to arbitrary file uploads due to missing file type validation in the set_featured_image…EPSS 1.1%8.8CVE-2021-24149Webnus modern events calendar lite sql injection vulnerabilityUnvalidated input in the Modern Events Calendar Lite WordPress plugin, versions before 5.16.6, did not sanitise the mec[post_id] POST parameter in th…EPSS 1.5%7.5CVE-2021-24146Webnus modern events calendar lite improper access control vulnerabilityLack of authorisation checks in the Modern Events Calendar Lite WordPress plugin, versions before 5.16.5, did not properly restrict access to the exp…EPSS 31%6.1CVE-2021-24925Webnus modern events calendar lite cross-site scripting vulnerabilityThe Modern Events Calendar Lite WordPress plugin before 6.1.5 does not sanitise and escape the current_month_divider parameter of its mec_list_load_m…EPSS 0.80%5.4CVE-2022-30533Webnus modern events calendar lite cross-site scripting vulnerabilityCross-site scripting vulnerability in Modern Events Calendar Lite versions prior to 6.3.0 allows remote an authenticated attacker to inject an arbitr…EPSS 0.55%

Source: NIST National Vulnerability Database (record CVE-2021-24145), CISA KEV, FIRST EPSS (scores of 2026-09-24). This page is refreshed as NVD updates the record.