{"id":"CVE-2024-43404","summary":"Remote Code Execution Vulnerability in MEGABOT","details":"MEGABOT is a fully customized Discord bot for learning and fun. The `/math` command and functionality of MEGABOT versions \u003c 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.","aliases":["GHSA-vhxp-4hwq-w3p2"],"modified":"2026-04-02T12:18:48.699533Z","published":"2024-08-20T14:55:12.928Z","database_specific":{"cwe_ids":["CWE-95"],"cna_assigner":"GitHub_M","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43404.json"},"references":[{"type":"WEB","url":"https://github.com/NicPWNs/MEGABOT/releases/tag/v1.5.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43404.json"},{"type":"ADVISORY","url":"https://github.com/NicPWNs/MEGABOT/security/advisories/GHSA-vhxp-4hwq-w3p2"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-43404"},{"type":"REPORT","url":"https://github.com/NicPWNs/MEGABOT/issues/137"},{"type":"FIX","url":"https://github.com/NicPWNs/MEGABOT/commit/71e79e5581ea36313700385b112d863053fb7ed6"},{"type":"FIX","url":"https://github.com/NicPWNs/MEGABOT/pull/138"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/nicpwns/megabot","events":[{"introduced":"0"},{"fixed":"26c7b95ddbf5d762cad387f20b85fe3bd4fbb821"}]}],"versions":["v.1.3.0","v1.0.0","v1.0.1","v1.0.2","v1.0.3","v1.0.4","v1.1.0","v1.2.0","v1.2.1","v1.2.2","v1.2.3","v1.3.1","v1.3.2","v1.3.3","v1.3.4","v1.3.5","v1.3.6","v1.3.7","v1.3.8","v1.3.9","v1.4.0","v1.4.1","v1.4.10","v1.4.2","v1.4.3","v1.4.4","v1.4.5","v1.4.6","v1.4.7","v1.4.8","v1.4.9"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-43404.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}