CVE-2024-43404CWE-95

Remote Code Execution Vulnerability in MEGABOT

Critical · published August 20, 2024

CVSS v3.1
9.8
EPSS
1%
Percentile
65.6
In the wild
Unconfirmed
What it is

🚨 A simple command in MEGABOT can become a hacker's playground! The `/math` command in versions < 1.5.0 allows remote code execution through a sneaky `eval()` — yikes! 🔥 Think of it like a restaurant kitchen where the chef blindly follows any order, no questions asked. If a crafty diner says they want ‘whatever you can conjure up’, they could end up serving a dish made from anything — including poison! An attacker could send a crafty command through the `/math` functionality, running malicious Python code on your server. This means they could control the bot, access sensitive data, or even take over your Discord guild entirely — absolutely devastating!

Put simply

Think of it like a restaurant kitchen where the chef blindly follows any order, no questions asked. If a crafty diner says they want ‘whatever you can conjure up’, they could end up serving a dish made from anything — including poison! This remote code execution vulnerability stems from the use of Python's `eval()` function in the `/math` command, allowing injection of arbitrary code via the `expression` parameter. Any Discord guild utilizing MEGABOT versions below 1.5.0 is at risk.

What to do

An attacker could send a crafty command through the `/math` functionality, running malicious Python code on your server. This means they could control the bot, access sensitive data, or even take over your Discord guild entirely — absolutely devastating! Patch MEGABOT immediately to version 1.5.0 or above to secure your Discord channels. Review the command structures and ensure that no untrusted input can reach `eval()` in your applications. Don’t forget to monitor your guild's activity for any unusual behavior! You've got this! Follow these steps and secure your guild in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01108 · 65.6th percentile
Weakness
CWE-95 · Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
Published
2024-08-20T14:55Z
EPSS history
Timeline
  • 20 AUG 14:55Z
    Remote Code Execution Vulnerability in MEGABOT
    cvelistv5