{"answers":{"affected":"3 open source packages ship an affected version, including red-discordbot and Red-DiscordBot.","exploited":"There is no known exploitation of CVE-2024-39905 in the wild and no public exploit code.","fix":"Upgrade red-discordbot to 3.5.10 or later.","what":"CVE-2024-39905 is a medium-severity missing authorization vulnerability in Cog-Creators Red-DiscordBot, published on 11 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-39905 and fix it if it is affected.\n\nWhat it is: CVE-2024-39905 is a medium-severity missing authorization vulnerability in Cog-Creators Red-DiscordBot, published on 11 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-39905 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- red-discordbot (PyPI): affected from 3.5.0; fixed in 3.5.10\n- red-discordbot (PyPI): affected from 3.5.0; fixed in 3.5.10\n- Red-DiscordBot (PyPI): affected from 3.5.0; fixed in 3.5.10\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-39905/ (Markdown: https://insights.sbomify.com/CVE-2024-39905/index.md)","id":"CVE-2024-39905","markdown":"https://insights.sbomify.com/CVE-2024-39905/index.md","name":"CVE-2024-39905","record":{"aliases":["GHSA-5jq8-q6rj-9gq4","PYSEC-2026-1865"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Discord bot framework","requires_auth":"none","summary":"Attackers can bypass channel management permissions in third-party cogs using a flawed API check, allowing unauthorized command execution.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Red-DiscordBot vulnerable to Incorrect Authorization in commands API","id":"CVE-2024-39905","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"missing_authorization","year":"2024"},"n_packages":3,"n_references":3,"next":{"headline":"Remote code execution in Haven IndieAuthClient (GHSL-2024-093)","id":"CVE-2024-39906"},"packages":[{"ecosystem":"PyPI","fixed":["3.5.10"],"introduced":["3.5.0"],"last_affected":[],"package":"Red-DiscordBot","purl":null,"source":"GHSA-5jq8-q6rj-9gq4"},{"ecosystem":"PyPI","fixed":["3.5.10"],"introduced":["3.5.0"],"last_affected":[],"package":"red-discordbot","purl":"pkg:pypi/red-discordbot","source":"GHSA-5jq8-q6rj-9gq4"},{"ecosystem":"PyPI","fixed":["3.5.10"],"introduced":["3.5.0"],"last_affected":[],"package":"red-discordbot","purl":"pkg:pypi/red-discordbot","source":"PYSEC-2026-1865"}],"prev":{"headline":"Code Execution Vulnerability via Local File Path Traversal in Vnote","id":"CVE-2024-39904"},"products":["Red-DiscordBot"],"published":"2024-07-11","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["Cog-Creators"]},"summary":"Attackers can bypass channel management permissions in third-party cogs using a flawed API check, allowing unauthorized command execution.","url":"https://insights.sbomify.com/CVE-2024-39905/"}