What’s Vulnerable › Vulnerabilities
CVE-2022-36024: Bots using py-cord as discord api wrapper are vulnerable to shutdowns through remote code execution
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.8% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-08-18 · updated 2026-06-17
- Weakness: CWE-284
Description
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.
Affected products
- Pycord-Development pycord: 2.0.0
References
- https://github.com/Pycord-Development/pycord/pull/1568
- https://github.com/Pycord-Development/pycord/security/advisories/GHSA-qmhj-m29v-gvmr
- https://github.com/Pycord-Development/pycord/pull/1568
- https://github.com/Pycord-Development/pycord/security/advisories/GHSA-qmhj-m29v-gvmr
Get alerted when CVE-2022-36024 or the next vulnerability affects your stack