# CVE-2024-45307: SudoBot missing authorization check in `-config` command

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 26% of CVEs (2026-12-01)
- Published: 2024-09-03T19:01:11.231Z
- Modified: 2026-06-17T07:53:59.643Z
- Weaknesses: CWE-285, CWE-862
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- onesoft-sudo sudobot: >= 9.0.0, < 9.26.7
- onesoftnet sudobot: from 9.0.0 before 9.26.7

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/onesoft-sudo/sudobot/security/advisories/GHSA-crgg-w3rr-r9h4> (mitigation, vendor-advisory)
- <https://github.com/onesoft-sudo/sudobot/commit/ef46ca98562f3c1abef4ff7dd94d8f7b8155ee50> (patch)

## Sources

- CVE List: [CVE-2024-45307](https://www.cve.org/CVERecord?id=CVE-2024-45307), CVE Terms of Use, modified 2024-09-03
- NVD: [CVE-2024-45307](https://nvd.nist.gov/vuln/detail/CVE-2024-45307), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-45307 · Whole record: https://cve.day/CVE-2024-45307.json · Rebuilt by cve.day 2026-11-25T22:58:45.020Z
