{"id":"CVE-2024-39905","aliases":["CVE-2024-39905","GHSA-5jq8-q6rj-9gq4","PYSEC-2026-1865"],"related":[],"kind":"vulnerability","state":"published","title":"Red-DiscordBot vulnerable to Incorrect Authorization in commands API","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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/","format":"markdown","source":"ghsa"},{"lang":"es","text":"Red es un bot de Discord totalmente modular. Debido a un error en la API principal de Red, los engranajes de terceros que utilizan la verificación de permisos del comando `@commands.can_manage_channel()` sin controles de permisos adicionales pueden autorizar a un usuario a ejecutar un comando incluso cuando ese usuario no tiene permisos para administrar un canal. Ninguno de los comandos principales o engranajes principales se ve afectado. Los mantenedores del proyecto no tienen conocimiento de ningún any _public_ 3rd-party que utilice esta API al momento de escribir este aviso. El problema fue parcheado y lanzado en la versión 3.5.10.","source":"nvd"}],"published":"2024-07-11T15:43:34.437Z","modified":"2026-09-10T03:50:16.298Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"}],"cwes":["CWE-863"],"affected":[{"ranges":[{"version":">= 3.5.0, < 3.5.10","status":"affected"}],"vendor":"Cog-Creators","product":"Red-DiscordBot","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"3.5.0","fixed":"3.5.10","status":"affected"}],"vendor":"cogboard","product":"red_discord_bot","cpe":"cpe:2.3:a:cogboard:red_discord_bot:3.5.0:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.5.0","status":"affected","fixed":"3.5.10"}],"ecosystem":"PyPI","package":"red-discordbot","purl":"pkg:pypi/red-discordbot","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.5.0","status":"affected","fixed":"3.5.10"}],"ecosystem":"PyPI","package":"red-discordbot","purl":"pkg:pypi/red-discordbot","source":"pysec"}],"references":[{"url":"https://github.com/Cog-Creators/Red-DiscordBot/security/advisories/GHSA-5jq8-q6rj-9gq4","tags":["web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/Cog-Creators/Red-DiscordBot/pull/6398","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/Cog-Creators/Red-DiscordBot/commit/0b0b23b9717b40ed4f8715720b199417c8e89750","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39905","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/Cog-Creators/Red-DiscordBot","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/red-discordbot","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-5jq8-q6rj-9gq4","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-07-12T18:05:25.225Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-39905","url":"https://www.cve.org/CVERecord?id=CVE-2024-39905","licence":"CVE Terms of Use","modified":"2024-08-02T04:33:11.321Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5jq8-q6rj-9gq4","url":"https://github.com/advisories/GHSA-5jq8-q6rj-9gq4","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:16.298Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-39905","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39905","licence":"Public domain","modified":"2026-06-17T07:42:59.967Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1865","url":"https://osv.dev/vulnerability/PYSEC-2026-1865","licence":"CC-BY-4.0","modified":"2026-07-07T17:47:00.815Z"}],"updatedAt":"2026-11-25T22:58:42.793Z","epss":{"score":0.00413,"percentile":0.37679,"date":"2026-12-01T12:00:22.000Z"}}