Medium

Unauthorized privilege escalation in Mod module

  • Disclosed: 27.10.2020
  • Updated: 11.10.2026 15:17

Impact

An unauthorized privilege escalation exploit has been discovered in the Mod module: this exploit allows Discord users with a high privilege level within the guild to bypass hierarchy checks when the application is in a specific condition that is beyond that user's control. By abusing this exploit, it's possible to perform destructive actions within the guild the user has high privileges in.

Patches

This exploit has been fixed on version & 3.4.1.

Workarounds

Unloading the Mod module with unload mod or, disabling the massban command with command disable global massban can render this exploit not accessible. We still highly recommend updating to 3.4.1 to completely patch this issue.

References

For more information

If you have any questions or comments about this advisory:

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) red-discordbot < 3.4.1 3.4.1

References

CVSS score 7.7/10
CVSS vector
CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N
Weakness (CWE)
CWE-285
Platform
Python (PyPI)
Package
red-discordbot
Disclosed
27.10.2020
Updated
11.10.2026 15:17

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2020-267 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-mp9m-g7qj-6vqr - CC BY 4.0

Vulnerability history: red-discordbot

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
4
First → latest
08.2020 07.2024
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 1
  • Medium 3

Disclosures per year

  1. 2020: 3
  2. 2021: 0
  3. 2022: 0
  4. 2023: 0
  5. 2024: 1
  6. 2025: 0
  7. 2026: 0
  1. Medium · 5.3 CVE-2024-39905 >= 3.5.0, < 3.5.10 3.5.10
  2. Unauthorized privilege escalation in Mod module this entry
    Medium · 7.7 CVE-2020-15278 < 3.4.1 3.4.1
  3. High · 8.5 CVE-2020-15147 < 3.3.12 3.3.12
  4. Medium · 8.2 CVE-2020-15140 < 3.3.11 3.3.11

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.