Vulnerability · Published Jul 11, 2024 · Assigned by GitHub_M
CVE-2024-39905Red-DiscordBot vulnerable to Incorrect Authorization in commands API
Medium 5.3
In plain English
A medium-severity incorrect authorization in Red-DiscordBot from Cog-Creators. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 36% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Red is a fully modular Discord bot. Due to a bug in Red's Core API, 3rd-party cogs using the `@commands.can_manage_channel()` command permission check without additional permission controls may authorize a user to run a command even when that user doesn't have permissions to manage a channel. None of the core commands or core cogs are affected. The maintainers of the project are not aware of any _public_ 3rd-party cog utilizing this API at the time of writing this advisory. The problem was patched and released in version 3.5.10.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | red-discordbot | 3.5.10 | GHSA-5jq8-q6rj-9gq4 |
| PyPI | red-discordbot | 3.5.10 | PYSEC-2026-1865 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Cog-Creators | Red-DiscordBot | >= 3.5.0, < 3.5.10 |
Weakness: CWE-863 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N