All reports
High

Moodle Arbitrary PHP code execution by site admins via Shibboleth configuration

Affected versions

Affected versions
>= 3.8, < 3.8.7
Fixed version
3.8.7
Affected versions
>= 3.5, < 3.5.16
Fixed version
3.5.16
Affected versions
>= 3.10, < 3.10.1
Fixed version
3.10.1
Affected versions
>= 3.9, < 3.9.4
Fixed version
3.9.4

Exploitation

CVE-2021-20187

Probability of exploitation in the next 30 days: 1.59%

FIRST EPSS · 2026-11-18

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.

Links