{"id":"CVE-2021-20187","aliases":["BIT-moodle-2021-20187","GHSA-2jrm-gww7-wch2"],"url":"https://o3.security/vulnerability/CVE-2021-20187","summary":"Moodle Arbitrary PHP code execution by site admins via Shibboleth configuration","details":"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.","published":"2021-01-28T19:15:13.377Z","modified":"2026-07-08T22:14:56.183467Z","cvss":{"score":7.2,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"moodle/moodle","fixedVersion":"3.5.16"},{"ecosystem":"Packagist","name":"moodle/moodle","fixedVersion":"3.8.7"},{"ecosystem":"Packagist","name":"moodle/moodle","fixedVersion":"3.9.4"},{"ecosystem":"Packagist","name":"moodle/moodle","fixedVersion":"3.10.1"}],"fix":null,"references":[{"type":"FIX","url":"https://moodle.org/mod/forum/discuss.php?d=417171"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-08T22:14:56.183467Z"}}