Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2021-20187
Published:January 28, 2021
Updated:May 17, 2026
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 Packages
moodle/moodle (PHP):
Affected version(s) =v3.10.0 <v3.10.1
Fix Suggestion:
Update to version v3.10.1
moodle/moodle (PHP):
Affected version(s) >=v3.8.0 <v3.8.7
Fix Suggestion:
Update to version v3.8.7
moodle/moodle (PHP):
Affected version(s) >=v3.5.0 <v3.5.16
Fix Suggestion:
Update to version v3.5.16
moodle/moodle (PHP):
Affected version(s) >=v3.9.0 <v3.9.4
Fix Suggestion:
Update to version v3.9.4
Do you need more information?
Contact Us
CVSS v4
Base Score:
8.6
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
HIGH
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.2
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
HIGH
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Control of Generation of Code ('Code Injection')
Inclusion of Functionality from Untrusted Control Sphere
EPSS
Base Score:
0.56