{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "26c7b95ddbf5d762cad387f20b85fe3bd4fbb821"
            }
          ],
          "repo": "https://github.com/nicpwns/megabot",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-vhxp-4hwq-w3p2"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-95"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43404.json"
  },
  "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.",
  "id": "CVE-2024-43404",
  "modified": "2026-04-01T23:09:29.631692515Z",
  "published": "2024-08-20T14:55:12.928Z",
  "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"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Remote Code Execution Vulnerability in MEGABOT"
}