{"id":"CVE-2022-36024","summary":"Bots using py-cord as discord api wrapper are vulnerable to shutdowns through remote code execution","details":"py-cord is a an API wrapper for Discord written in Python. Bots creating using py-cord version 2.0.0 are vulnerable to remote shutdown if they are added to the server with the `application.commands` scope without the `bot` scope. Currently, it appears that all public bots that use slash commands are affected. This issue has been patched in version 2.0.1. There are currently no recommended workarounds - please upgrade to a patched version.","aliases":["GHSA-qmhj-m29v-gvmr","PYSEC-2022-43146"],"modified":"2026-08-12T03:51:28.573118622Z","published":"2022-08-18T14:45:17Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-284","CWE-862"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/36xxx/CVE-2022-36024.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/36xxx/CVE-2022-36024.json"},{"type":"ADVISORY","url":"https://github.com/Pycord-Development/pycord/security/advisories/GHSA-qmhj-m29v-gvmr"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36024"},{"type":"FIX","url":"https://github.com/Pycord-Development/pycord/pull/1568"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/pycord-development/pycord","events":[{"introduced":"95fd465024ddc9bcfa45c3d09218296ab7a0c627"},{"last_affected":"95fd465024ddc9bcfa45c3d09218296ab7a0c627"}],"database_specific":{"cpe":"cpe:2.3:a:pycord_development:pycord:2.0.0:*:*:*:*:discord:*:*","extracted_events":[{"introduced":"= 2.0.0"},{"last_affected":"= 2.0.0"},{"introduced":"2.0.0"},{"last_affected":"2.0.0"}],"source":["AFFECTED_FIELD","CPE_STRING"]}}],"versions":["2.0.0","= 2.0.0","v2.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-36024.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}