CVE-2021-21809 Moodle command execution vulnerability exists in the default legacy spellchecker plugin

High 8.2 Published Updated

An administrator can execute arbitrary commands via the legacy spellchecker plugin in Moodle.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-21809?

CVE-2021-21809 is a high-severity command injection vulnerability in Moodle Moodle, published on 23 Jun 2021. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

A command execution vulnerability exists in the default legacy spellchecker plugin in Moodle 3.10. A specially crafted series of HTTP requests can lead to command execution. An attacker must have administrator privileges to exploit this vulnerabilities.

Weakness: CWE-78

Which versions are affected by CVE-2021-21809?

3 open source packages ship an affected version, including moodle/moodle and moodle. It affects 1 product.

PackageAffectedFixed in
moodle/moodle PackagistAll versionsNone
moodle/moodle PackagistAll versionsNone
moodle BitnamiFrom 3.10.03.10.1

Products include Moodle Moodle.

How do I fix CVE-2021-21809?

Apply the vendor's patch.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2021-21809 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-21809 exists.

Public exploit code: 1 Metasploit module and 1 proofs of concept on GitHub.

All Moodle Moodle vulnerabilities

Sources

Also known as BIT-moodle-2021-21809, GHSA-c7jj-vfmr-j9mj, UBUNTU-CVE-2021-21809.

Is CVE-2021-21809 in your software?

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

Check your SBOMs for free