Skip to content
Emerging threatsCritical

CVE-2021-21809Moodle OS Command Injection

Moodle command execution vulnerability exists in the default legacy spellchecker plugin

Published Oct 13, 2021 · Updated Sep 8, 2026 · Also known as BIT-moodle-2021-21809, GHSA-c7jj-vfmr-j9mj, UBUNTU-CVE-2021-21809

Key Facts

Patch immediately
  • CVE-2021-21809 is a critical-severity vulnerability (CVSS 9.1 v3.1) affecting Moodle, moodle/moodle (composer).
  • It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
  • EPSS estimates a 24% probability of exploitation in the next 30 days.
  • Fixed versions are available, including Moodle 3.10.1.
  • Brandefense priority: patch immediately, because public exploit code exists for a high-severity flaw.

Scores

CVSS v3.1

9.1

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

EPSS (30-day exploit likelihood)

24%

Higher than 97.8% of all scored CVEs

Exploit maturity

Weaponized

ATLAS score

60/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Not listed

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

Weaponized

Public exploit code

3

Proof-of-concept links

In-the-wild evidence

1

Reports of active use

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.

Affected Products

6 affected entries in total
ProductAffected versionsFixed in
MoodleMoodle3.10.0, >= 3.10.0, >= Moodle 3.103.10.1
moodle/moodlecomposer>= 3.8.0n/a

Patched Releases

Moodle

3.10.1

Timeline

  1. Publicly disclosed

    Oct 13, 2021

  2. Last updated

    Sep 8, 2026

Weakness Type

  • CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
  • CWE-732 Incorrect Permission Assignment for Critical Resource

References

8 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2021-21809 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

Figures as of Oct 19, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.