CVE-2020-15140 Remote Code Execution in Red Discord Bot

High 8.2 Published Updated

Attackers can execute arbitrary code via crafted usernames in the Trivia module, leading to system compromise and data exposure.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-15140?

CVE-2020-15140 is a high-severity code injection vulnerability in Cog-Creators Red-DiscordBot, published on 21 Aug 2020. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

In Red Discord Bot before version 3.3.11, 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. This critical exploit has been fixed on version 3.3.11.

Weakness: CWE-74

Which versions are affected by CVE-2020-15140?

3 open source packages ship an affected version, including red-discordbot and Red-DiscordBot. It affects 1 product.

PackageAffectedFixed in
red-discordbot PyPIAll versions3.3.11
red-discordbot PyPIAll versions3.3.11
Red-DiscordBot PyPIAll versions3.3.11

Products include Cogboard Red Discord Bot.

How do I fix CVE-2020-15140?

Upgrade red-discordbot to 3.3.11 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2020-15140 being exploited?

There is no known exploitation of CVE-2020-15140 in the wild and no public exploit code.

Sources

Also known as GHSA-55j9-849x-26h4, PYSEC-2020-265.

Is CVE-2020-15140 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free