Paper/Archive/CVE-2024-43404

CVE-2024-43404

NicPWNs MEGABOT — Remote Code Execution Vulnerability in MEGABOT

Description · from the CVE record

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

ProductAffectedFixed inSource
MEGABOT< 1.5.0–CNA
megabot< 1.5.01.5.0CISA-ADP

Scores by source

GitHub_M (CNA)9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CISA ADPSSVCExploitation: none · Automatable: yes · Technical impact: total

References

refgithub.com/NicPWNs/MEGABOT/security/advisories/GHSA-vhxp-4hwq-w3p2refgithub.com/NicPWNs/MEGABOT/issues/137refgithub.com/NicPWNs/MEGABOT/pull/138refgithub.com/NicPWNs/MEGABOT/commit/71e79e5581ea36313700385b112d863053fb7ed6refgithub.com/NicPWNs/MEGABOT/releases/tag/v1.5.0