# CVE-2024-43404: Remote Code Execution Vulnerability in MEGABOT

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.11%, higher than 66% of CVEs (2026-12-01)
- Published: 2024-08-20T14:55:12.928Z
- Modified: 2026-06-17T07:50:58.900Z
- Weaknesses: CWE-94, CWE-95
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- NicPWNs MEGABOT: < 1.5.0
- megacord megabot: before 1.5.0

## Every score

- GitHub_M: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/NicPWNs/MEGABOT/security/advisories/GHSA-vhxp-4hwq-w3p2> (patch, vendor-advisory)
- <https://github.com/NicPWNs/MEGABOT/issues/137> (issue-tracking)
- <https://github.com/NicPWNs/MEGABOT/pull/138> (issue-tracking, patch)
- <https://github.com/NicPWNs/MEGABOT/commit/71e79e5581ea36313700385b112d863053fb7ed6> (patch)
- <https://github.com/NicPWNs/MEGABOT/releases/tag/v1.5.0> (release-notes)

## Sources

- CVE List: [CVE-2024-43404](https://www.cve.org/CVERecord?id=CVE-2024-43404), CVE Terms of Use, modified 2024-08-20
- NVD: [CVE-2024-43404](https://nvd.nist.gov/vuln/detail/CVE-2024-43404), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-43404 · Whole record: https://cve.day/CVE-2024-43404.json · Rebuilt by cve.day 2026-11-25T22:58:44.591Z
