Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2021-20187

Moodle Arbitrary PHP code execution by site admins via Shibboleth configuration

Overview

Published
28 Jan 2021
Modified
17 Jun 2026
High CVE
2 Registry packages
1 OS packages
1 Linux distributions
Yes Fix available

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.

Source: OX vulnerability database

Severity

7.2 · HIGH

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
High
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Weakness: CWE-94, CWE-829

Affected packages · 2

Packages affected by CVE-2021-20187
EcosystemPackageVulnerableFixed in
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.163.8.73.9.43.10.1
Composer (PHP) moodle/moodle >=3.5, <3.5.16>=3.8, <3.8.7>=3.9, <3.9.4>=3.10, <3.10.1 3.5.163.8.73.9.43.10.1

Open a package to see all its vulnerabilities.

Operating systems · 1 fix

ubuntu 1 release · 1 package

affected 1
moodle
ubuntu fixes for CVE-2021-20187
ReleasePackageFixed in
18.04-ESM moodle affected

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.