{"id":"CVE-2024-39905","state":"PUBLISHED","title":"Red-DiscordBot vulnerable to Incorrect Authorization in commands API","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.","publishedAt":"2024-07-11T15:43:34.437Z","updatedAt":"2024-08-02T04:33:11.321Z","severity":{"score":5.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["Cog-Creators Red-DiscordBot"],"affected":[{"vendor":"Cog-Creators","product":"Red-DiscordBot","versions":[{"version":">= 3.5.0, < 3.5.10","status":"affected"}]}],"references":["https://github.com/Cog-Creators/Red-DiscordBot/security/advisories/GHSA-5jq8-q6rj-9gq4","https://github.com/Cog-Creators/Red-DiscordBot/pull/6398","https://github.com/Cog-Creators/Red-DiscordBot/commit/0b0b23b9717b40ed4f8715720b199417c8e89750"],"weaknesses":["CWE-863"],"ingestedAt":"2026-10-29T20:07:39.287Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/39xxx/CVE-2024-39905.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-39905","state":"PUBLISHED","datePublished":"2024-07-11T15:43:34.437Z","dateUpdated":"2024-08-02T04:33:11.321Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-07-02T19:37:18.600Z"},"containers":{"cna":{"title":"Red-DiscordBot vulnerable to Incorrect Authorization in commands API","descriptions":[{"lang":"en","value":"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":[{"vendor":"Cog-Creators","product":"Red-DiscordBot","versions":[{"version":">= 3.5.0, < 3.5.10","status":"affected"}]}],"references":[{"url":"https://github.com/Cog-Creators/Red-DiscordBot/security/advisories/GHSA-5jq8-q6rj-9gq4","name":"https://github.com/Cog-Creators/Red-DiscordBot/security/advisories/GHSA-5jq8-q6rj-9gq4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Cog-Creators/Red-DiscordBot/pull/6398","name":"https://github.com/Cog-Creators/Red-DiscordBot/pull/6398","tags":["x_refsource_MISC"]},{"url":"https://github.com/Cog-Creators/Red-DiscordBot/commit/0b0b23b9717b40ed4f8715720b199417c8e89750","name":"https://github.com/Cog-Creators/Red-DiscordBot/commit/0b0b23b9717b40ed4f8715720b199417c8e89750","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-863","lang":"en","description":"CWE-863: Incorrect Authorization","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-07-11T15:43:34.437Z"},"source":{"advisory":"GHSA-5jq8-q6rj-9gq4","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"cogboard","product":"red_discord_bot","defaultStatus":"unknown","versions":[{"version":"3.5.0","status":"affected","lessThan":"3.5.10","versionType":"custom"}],"cpes":["cpe:2.3:a:cogboard:red_discord_bot:3.5.0:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-07-12T18:05:25.225801Z","id":"CVE-2024-39905","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-07-12T18:08:15.664Z"}},{"title":"CVE Program Container","references":[{"url":"https://github.com/Cog-Creators/Red-DiscordBot/security/advisories/GHSA-5jq8-q6rj-9gq4","name":"https://github.com/Cog-Creators/Red-DiscordBot/security/advisories/GHSA-5jq8-q6rj-9gq4","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/Cog-Creators/Red-DiscordBot/pull/6398","name":"https://github.com/Cog-Creators/Red-DiscordBot/pull/6398","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/Cog-Creators/Red-DiscordBot/commit/0b0b23b9717b40ed4f8715720b199417c8e89750","name":"https://github.com/Cog-Creators/Red-DiscordBot/commit/0b0b23b9717b40ed4f8715720b199417c8e89750","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T04:33:11.321Z"}}]}}}