CVE-2021-20187: moodle Code Injection
CVSS: 7.2v3.1HighModified
AliasesUBUNTU-CVE-2021-20187
Published 28-01-2021Last modified 03-08-2024
Vulnerability summary
CVE-2021-20187 is a high (CVSS 7.2) Code Injection vulnerability in moodle. EPSS estimates a 1.57% chance of exploitation in the next 30 days, higher than 75.1% of scored vulnerabilities.
CVSS score
7.2/10
010
High · v3.1 (NVD)EPSS score
1.57%
0%100%
Low · 0.00 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded
Timeline
- 28-01-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 2 sources · 2 versionsHigh 7.2Preferred score · NVD (NIST)
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:HSourcesAll 2 agree
- OSV · UbuntuEcosystem advisory · calculated7.2HighCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Medium 6.5Preferred score · NVD (NIST)
AV:N/AC:L/Au:S/C:P/I:P/A:PSourcesSingle source
EPSS trend
Probability
1.57%
Chance of exploitation in the next 30 days
Percentile
75%
Versus all other CVEs
30-day change
0.00 pp
From 1.57% on 21-09-2026
21-09-202621-10-2026
EPSS score1.57%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-94Improper Control of Generation of Code ('Code Injection')The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
- CWE-829Inclusion of Functionality from Untrusted Control SphereThe product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere.
Affected systems
Moodle1 product
- moodleEOL< 3.5.16 | ≥ 3.8.0, < 3.8.7 | ≥ 3.9.0, < 3.9.4 | 3.10.0
Ubuntu1 product
- moodleAll versions (No fix recorded)
2 vendors · 2 products