{"id":"CVE-2024-43404","state":"PUBLISHED","title":"Remote Code Execution Vulnerability in MEGABOT","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.","publishedAt":"2024-08-20T14:55:12.928Z","updatedAt":"2024-08-20T20:29:22.818Z","severity":{"score":9.8,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["NicPWNs MEGABOT"],"affected":[{"vendor":"NicPWNs","product":"MEGABOT","versions":[{"version":"< 1.5.0","status":"affected"}]}],"references":["https://github.com/NicPWNs/MEGABOT/security/advisories/GHSA-vhxp-4hwq-w3p2","https://github.com/NicPWNs/MEGABOT/issues/137","https://github.com/NicPWNs/MEGABOT/pull/138","https://github.com/NicPWNs/MEGABOT/commit/71e79e5581ea36313700385b112d863053fb7ed6","https://github.com/NicPWNs/MEGABOT/releases/tag/v1.5.0"],"weaknesses":["CWE-95"],"ingestedAt":"2026-10-29T20:07:47.831Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/43xxx/CVE-2024-43404.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-43404","state":"PUBLISHED","datePublished":"2024-08-20T14:55:12.928Z","dateUpdated":"2024-08-20T20:29:22.818Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-08-12T18:02:04.966Z"},"containers":{"cna":{"title":"Remote Code Execution Vulnerability in MEGABOT","descriptions":[{"lang":"en","value":"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":[{"vendor":"NicPWNs","product":"MEGABOT","versions":[{"version":"< 1.5.0","status":"affected"}]}],"references":[{"url":"https://github.com/NicPWNs/MEGABOT/security/advisories/GHSA-vhxp-4hwq-w3p2","name":"https://github.com/NicPWNs/MEGABOT/security/advisories/GHSA-vhxp-4hwq-w3p2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/NicPWNs/MEGABOT/issues/137","name":"https://github.com/NicPWNs/MEGABOT/issues/137","tags":["x_refsource_MISC"]},{"url":"https://github.com/NicPWNs/MEGABOT/pull/138","name":"https://github.com/NicPWNs/MEGABOT/pull/138","tags":["x_refsource_MISC"]},{"url":"https://github.com/NicPWNs/MEGABOT/commit/71e79e5581ea36313700385b112d863053fb7ed6","name":"https://github.com/NicPWNs/MEGABOT/commit/71e79e5581ea36313700385b112d863053fb7ed6","tags":["x_refsource_MISC"]},{"url":"https://github.com/NicPWNs/MEGABOT/releases/tag/v1.5.0","name":"https://github.com/NicPWNs/MEGABOT/releases/tag/v1.5.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-95","lang":"en","description":"CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-08-20T14:55:12.928Z"},"source":{"advisory":"GHSA-vhxp-4hwq-w3p2","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"megacord","product":"megabot","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"1.5.0","versionType":"custom"}],"cpes":["cpe:2.3:a:megacord:megabot:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-08-20T20:07:50.076252Z","id":"CVE-2024-43404","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-08-20T20:29:22.818Z"}}]}}}