Advisory

GHSA-55j9-849x-26h4

Also known as: CVE-2020-15140, PYSEC-2020-265

Summary

Remote Code Execution in Red Discord Bot

Details

Impact
A RCE exploit has been discovered in the Trivia module: this exploit allows Discord users with specifically crafted usernames to inject code into the Trivia module's leaderboard command. By abusing this exploit, it's possible to perform destructive actions and/or access sensitive information.

Patches
This critical exploit has been fixed on version 3.3.11.

Workarounds
Unloading the Trivia module with unload trivia can render this exploit not accessible. We still highly recommend updating to 3.3.11 to completely patch this issue.

References
https://github.com/Cog-Creators/Red-DiscordBot/pull/4175

For more information
If you have any questions or comments about this advisory:

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2020-08-21 16:30 UTC
Modified
2026-07-08 05:59 UTC

Affected packages and fixes

red-discordbot

PyPI · All systems

Affected

  • introduced 0, fixed 3.3.11 (ecosystem)

Fixed versions

3.3.11

Fix

  • Fixed version 3.3.11
    pip install --upgrade red-discordbot==3.3.11

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