{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2024-43404",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2024-08-12T18:02:04.966Z",
        "datePublished": "2024-08-20T14:55:12.928Z",
        "dateUpdated": "2024-08-20T20:29:22.818Z"
    },
    "containers": {
        "cna": {
            "title": "Remote Code Execution Vulnerability in MEGABOT",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-95",
                            "lang": "en",
                            "description": "CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "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"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/NicPWNs/MEGABOT/security/advisories/GHSA-vhxp-4hwq-w3p2",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/NicPWNs/MEGABOT/security/advisories/GHSA-vhxp-4hwq-w3p2"
                },
                {
                    "name": "https://github.com/NicPWNs/MEGABOT/issues/137",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/NicPWNs/MEGABOT/issues/137"
                },
                {
                    "name": "https://github.com/NicPWNs/MEGABOT/pull/138",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/NicPWNs/MEGABOT/pull/138"
                },
                {
                    "name": "https://github.com/NicPWNs/MEGABOT/commit/71e79e5581ea36313700385b112d863053fb7ed6",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/NicPWNs/MEGABOT/commit/71e79e5581ea36313700385b112d863053fb7ed6"
                },
                {
                    "name": "https://github.com/NicPWNs/MEGABOT/releases/tag/v1.5.0",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/NicPWNs/MEGABOT/releases/tag/v1.5.0"
                }
            ],
            "affected": [
                {
                    "vendor": "NicPWNs",
                    "product": "MEGABOT",
                    "versions": [
                        {
                            "version": "< 1.5.0",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2024-08-20T14:55:12.928Z"
            },
            "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."
                }
            ],
            "source": {
                "advisory": "GHSA-vhxp-4hwq-w3p2",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "affected": [
                    {
                        "vendor": "megacord",
                        "product": "megabot",
                        "cpes": [
                            "cpe:2.3:a:megacord:megabot:*:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "0",
                                "status": "affected",
                                "lessThan": "1.5.0",
                                "versionType": "custom"
                            }
                        ]
                    }
                ],
                "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"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-08-20T20:29:22.818Z"
                }
            }
        ]
    }
}