CVE-2021-20187 json
Moodle Arbitrary PHP code execution by site admins via Shibboleth configuration
published 2021-01-28 5 y ago modified 2026-09-08 2 mo ago also BIT-moodle-2021-20187 , EUVD-2022-2005 , GHSA-2jrm-gww7-wch2
- cvss
- 7.2
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.6%
- EPSS 1.6% chance of exploitation in 30 days, percentile 75%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist moodle/moodle 3.5.16, 3.8.7, 3.9.4, 3.10.1
- bitnami moodle 3.5.16, 3.8.7, 3.9.4, 3.10.1
- moodle moodle 3.5.16, 3.8.7, 3.9.4
Exploit prediction
1.59% chance of exploitation in the next 30 days, higher than 75% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
| OSV | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | moodle/moodle | >=3.5, <3.5.16 >=3.8, <3.8.7 >=3.9, <3.9.4 >=3.10, <3.10.1 |
3.5.16 3.8.7 3.9.4 3.10.1 |
| bitnami | moodle | <3.5.16 >=3.8.0, <3.8.7 >=3.9.0, <3.9.4 >=3.10.0, <3.10.1 |
3.5.16 3.8.7 3.9.4 3.10.1 |
Affected products
- n/a moodle
Classification
References
-
moodle.org
/mod/forum/discuss.php?d=417171
web, patch, vendor-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-20187
advisory, web
-
github.com
/moodle/moodle
package
Sources
- CVE List CVE-2021-20187
- GitHub Advisory GHSA-2jrm-gww7-wch2
- NVD CVE-2021-20187
- OSV BIT-moodle-2021-20187
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.