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)

Published · last modified .

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.

EPSS exploit prediction

EPSS: 0.016 (74.5th percentile), scored .

Low probability of exploitation in the next 30 days, but still tracked. 74th percentile — 74.5% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2021-20187: held from 0.016 to 0.016.

EPSS over last 30 days · oldest: 0.016 · newest: 0.016 · change: 0.000

Affected products

  • Moodle — versions 3.10.0
  • 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.