Vulnerability · Published Aug 18, 2022 · Assigned by GitHub_M
CVE-2022-36024Bots using py-cord as discord api wrapper are vulnerable to shutdowns through remote code execution
High 7.5
In plain English
A high-severity missing authorization in pycord from Pycord-Development. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 57% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | py-cord | 2.0.1 | GHSA-qmhj-m29v-gvmr |
| PyPI | py-cord | 2.0.1 | PYSEC-2022-43146 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Pycord-Development | pycord | = 2.0.0 |
Weakness: CWE-862, CWE-284 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/Pycord-Development/pycord/security/advisories/GHSA-qmhj-m29v-gvmr x_refsource_CONFIRM
- https://github.com/Pycord-Development/pycord/pull/1568 x_refsource_MISC