7.7high
Unauthorized privilege escalation in Mod module
- Severity
- 7.7high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.09% (higher than 66% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-mp9m-g7qj-6vqrPYSEC-2020-267
Description
Red Discord Bot before version 3.4.1 has an unauthorized privilege escalation exploit 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 is possible to perform destructive actions within the guild the user has high privileges in. This exploit has been fixed in version 3.4.1. As a workaround, 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Cog-Creators Red-DiscordBot | < 3.4.1 | CVE List |
| red-discordbot (PyPI) | before 3.4.1, before 726bfd38adfdfaef760412a68e01447b470f438b | GitHub Advisory Database, PyPA Advisory Database |
| cogboard red_discord_bot | before 3.4.1 | NVD |
All scores
| GitHub_M | 7.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N |
| GitHub | 7.7medium CVSS:3.0 | CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 6.0medium CVSS:2.0 | AV:N/AC:M/Au:S/C:P/I:P/A:P |
Classification
What each source says
CVE List
Red Discord Bot before version 3.4.1 has an unauthorized privilege escalation exploit 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 is possible to perform destructive actions within the guild the user has high privileges in. This exploit has been fixed in version 3.4.1. As a workaround, 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.
GitHub Advisory Database
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:
- Open an issue in Cog-Creators/Red-DiscordBot
- Over on our Discord server
NVD (es)
Red Discord Bot versiones anteriores a 3.4.1, presenta una explotación de escalada de privilegios no autorizada en el módulo Mod. Esta explotación permite a usuarios de Discord con un alto nivel de privilegios dentro del gremio omitir una comprobación de jerarquía cuando la aplicación está en una condición específica que se encuentra fuera del control de ese usuario. Al abusar de esta explotación, es posible llevar a cabo acciones destructivas dentro del gremio en el que el usuario presenta altos privilegios. Esta explotación ha sido corregida en la versión 3.4.1. Como solución alternativa, descargar el módulo Mod con unload mod o, desactivar el comando massban con el comando disable global massban puede hacer que esta explotación no sea accesible. Seguimos recomendando encarecidamente actualizar a versión 3.4.1 para parchear completamente este problema
References
| https://github.com/Cog-Creators/Red-DiscordBot/security/advisories/GHSA-mp9m-g7qj-6vqr | advisory, third-party-advisory, web | |
| https://github.com/Cog-Creators/Red-DiscordBot/commit/726bfd38adfdfaef760412a68e01447b470f438b | fix, patch, third-party-advisory, web | |
| https://github.com/Cog-Creators/Red-DiscordBot/releases/tag/3.4.1 | third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-15278 | advisory | |
| https://github.com/Cog-Creators/Red-DiscordBot | web | |
| https://github.com/pypa/advisory-database/tree/main/vulns/red-discordbot/PYSEC-2020-267.yaml | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-15278 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-mp9m-g7qj-6vqr changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2020-15278 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2020-267 changed 2023-11-08 | CC-BY-4.0 |