RCE in Moodle

CVE-2021-20187

It was found in Moodle before version 3.10.1, 3.9.4, 3.8.7 and 3.5.16 that it was possible for site administrators to execute arbitrary PHP scripts via a PHP include used during Shibboleth authentication.

Vulnerability class: RCE (Remote Code Execution)

EPSS: 0.016 (72.9th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 7.2 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.

Affected products

  • Moodle — versions 3.10.0
  • N/a Moodle — versions moodle 3.10.1, moodle 3.9.4, moodle 3.8.7, moodle 3.5.16

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2021-20187?
CVE-2021-20187 is a high-severity vulnerability in Moodle, classified under Code Injection. CVSS score: 7.2/10. Published 2021-01-28.
How severe is CVE-2021-20187?
High severity. CVSS v3 base score is 7.2 out of 10.
Is CVE-2021-20187 known to be exploited?
1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.