CVE-2024-43404
Megacord Megabot vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Megabot. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Megacord Megabot runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/NicPWNs/MEGABOT/security/advisories/GHSA-vhxp-4hwq-w3p2 · Patch
- github.com/NicPWNs/MEGABOT/commit/71e79e5581ea36313700385b112d863053fb7ed6 · Patch
- github.com/NicPWNs/MEGABOT/pull/138 · Patch
- github.com/NicPWNs/MEGABOT/issues/137
- github.com/NicPWNs/MEGABOT/releases/tag/v1.5.0
- nvd.nist.gov/vuln/detail/CVE-2024-43404
- cve.org/CVERecord?id=CVE-2024-43404
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.