{"id":"CVE-2024-39905","aliases":["GHSA-5jq8-q6rj-9gq4","PYSEC-2026-1865"],"title":"Red-DiscordBot vulnerable to Incorrect Authorization in commands API","summary":"Red-DiscordBot vulnerable to Incorrect Authorization in commands API","severity":"medium","cvss":5.3,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","vendor":"red-discordbot","product":"red-discordbot","ecosystem":"pip","affected":["red-discordbot >= 3.5.0, < 3.5.10"],"patched":["red-discordbot 3.5.10"],"published":"2024-07-11","updated":"2026-09-10","sourceUpdated":"2026-09-10T03:50:16.298223471Z","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-5jq8-q6rj-9gq4","references":[{"url":"https://github.com/Cog-Creators/Red-DiscordBot/security/advisories/GHSA-5jq8-q6rj-9gq4"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39905"},{"url":"https://github.com/Cog-Creators/Red-DiscordBot/pull/6398"},{"url":"https://github.com/Cog-Creators/Red-DiscordBot/commit/0b0b23b9717b40ed4f8715720b199417c8e89750"},{"url":"https://github.com/Cog-Creators/Red-DiscordBot"}],"tags":["osv","pip"],"epss":0.00413,"epssPercentile":0.32956,"ingestedAt":"2026-07-08T18:25:46.024Z","slug":"CVE-2024-39905","body":"## Overview\n\n### Impact\n\nDue to a bug in Red's Core API, 3rd-party cogs using the [`@commands.can_manage_channel()`](https://docs.discord.red/en/stable/framework_checks.html#redbot.core.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.\nNone 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.\n\nThe [`@commands.mod_or_can_manage_channel()`](https://docs.discord.red/en/stable/framework_checks.html#redbot.core.commands.mod_or_can_manage_channel), [`@commands.admin_or_can_manage_channel()`](https://docs.discord.red/en/stable/framework_checks.html#redbot.core.commands.admin_or_can_manage_channel), and [`@commands.guildowner_or_can_manage_channel()`](https://docs.discord.red/en/stable/framework_checks.html#redbot.core.commands.guildowner_or_can_manage_channel) command permission checks are unaffected.\n\nCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N\nCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N/AU:Y/R:U/RE:L\n\n### Patches\n\nThe problem was patched in PR #6398 and later released in version [3.5.10](https://pypi.org/project/Red-DiscordBot/3.5.10/).\n\n### Workarounds\n\nAny cog using the [`@commands.can_manage_channel()`](https://docs.discord.red/en/stable/framework_checks.html#redbot.core.commands.can_manage_channel) command permission check should be unloaded until an upgrade to a patched version can be performed.\n\n### References\n\nhttps://github.com/Cog-Creators/Red-DiscordBot/pull/6398\nhttps://github.com/Cog-Creators/Red-DiscordBot/releases/tag/3.5.10\nhttps://pypi.org/project/Red-DiscordBot/3.5.10/\n\n\n\n## Affected packages\n\n- `red-discordbot >= 3.5.0, < 3.5.10`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `red-discordbot 3.5.10`","depth":"sunlit","depthScore":29,"depthScoreParts":{"impact":29.2,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}