What’s Vulnerable › Vulnerabilities
CVE-2024-43404: Remote Code Execution Vulnerability in MEGABOT
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-08-20 · updated 2026-06-17
- Weakness: CWE-95
Description
MEGABOT is a fully customized Discord bot for learning and fun. The `/math` command and functionality of MEGABOT versions < 1.5.0 contains a remote code execution vulnerability due to a Python `eval()`. The vulnerability allows an attacker to inject Python code into the `expression` parameter when using `/math` in any Discord channel. This vulnerability impacts any discord guild utilizing MEGABOT. This vulnerability was fixed in release version 1.5.0.
Affected products
- NicPWNs MEGABOT: before 1.5.0 — fixed in 1.5.0
How to fix
Upgrade to a fixed version: NicPWNs MEGABOT 1.5.0. Check the vendor advisory for mitigations.
References
- https://github.com/NicPWNs/MEGABOT/commit/71e79e5581ea36313700385b112d863053fb7ed6
- https://github.com/NicPWNs/MEGABOT/issues/137
- https://github.com/NicPWNs/MEGABOT/pull/138
- https://github.com/NicPWNs/MEGABOT/releases/tag/v1.5.0
- https://github.com/NicPWNs/MEGABOT/security/advisories/GHSA-vhxp-4hwq-w3p2
Get alerted when CVE-2024-43404 or the next vulnerability affects your stack