Advisory

GHSA-qmhj-m29v-gvmr

Also known as: CVE-2022-36024, PYSEC-2022-43146

Summary

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

Details

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:

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-08-18 14:18 UTC
Modified
2024-11-26 18:46 UTC

Affected packages and fixes

py-cord

PyPI · All systems

Affected

  • introduced 2.0.0, fixed 2.0.1 (ecosystem)

Fixed versions

2.0.1

Fix

  • Fixed version 2.0.1
    pip install --upgrade py-cord==2.0.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences