All reports
High

Bots using py-cord as Discord API wrapper are vulnerable to shutdowns through remote code execution

Affected versions

Version ranges need review.

Affected versions
= 2.0.0
Fixed version
2.0.1
Affected versions
>=2.0.0 <2.0.1
Fixed version
2.0.1

Exploitation

CVE-2022-36024

Probability of exploitation in the next 30 days: 0.82%

FIRST EPSS · 2026-11-21

Description

Impact

py-cord is a an API wrapper for Discord written in Python. Bots 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.

Patches

This issue has been patched in version 2.0.1.

Workarounds

There are currently no recommended workarounds - please upgrade to a patched version.

References

https://github.com/Pycord-Development/pycord/pull/1568

For more information

If you have any questions or comments about this advisory:

  • Open an issue in our GitHub

  • Email us at support@pycord.dev

Links

Credits

  • NeloBlivion
  • BobDotCom