What’s Vulnerable › Vulnerabilities
CVE-2021-20187
- Severity: high (CVSS 7.2 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.6% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2021-01-28 · updated 2026-06-17
- Weakness: CWE-94
Description
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.
Affected products
- Moodle: before 3.5.16; from 3.8.0 before 3.8.7; from 3.9.0 before 3.9.4; 3.10.0 — fixed in 3.5.16, 3.8.7, 3.9.4
How to fix
Upgrade to a fixed version: Moodle 3.5.16, 3.8.7, 3.9.4. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2021-20187 or the next vulnerability affects your stack