CVE-2024-45307

SudoBot missing authorization check in `-config` command

Description

SudoBot, a Discord moderation bot, is vulnerable to privilege escalation and exploit of the `-config` command in versions prior to 9.26.7. Anyone is theoretically able to update any configuration of the bot and potentially gain control over the bot's settings. Every version of v9 before v9.26.7 is affected. Other versions (e.g. v8) are not affected. Users should upgrade to version 9.26.7 to receive a patch. A workaround would be to create a command permission overwrite in the Database. A SQL statement provided in the GitHub Security Advisor can be executed to create a overwrite that disallows users without `ManageGuild` permission to run the `-config` command. Run the SQL statement for every server the bot is in, and replace `<guild_id>` with the appropriate Guild ID each time.

Categories

8.8
CVSS
Severity: High
CVSS 3.1 •
EPSS 0.17%
Vendor Advisory github.com
Affected: onesoft-sudo sudobot
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-45307?
CVE-2024-45307 has been scored as a high severity vulnerability.
How to fix CVE-2024-45307?
To fix CVE-2024-45307, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2024-45307 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2024-45307 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-45307?
CVE-2024-45307 affects onesoft-sudo sudobot.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.