Live threats

All CVEs / Moodle

CVE-2021-20187Moodle

High 7.2

Priority
43
CVSS 3.1
7.2
EPSS
1.6%
probability of exploitation in 30 days · percentile 76
Auth required
Yes
Published
Jan 28, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-94, CWE-829
Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Moodle.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist moodle/moodle ≥ 3.5 < 3.5.16 3.5.16 composer require "moodle/moodle:^3.5.16"
Packagist moodle/moodle ≥ 3.8 < 3.8.7 3.8.7 composer require "moodle/moodle:^3.8.7"
Packagist moodle/moodle ≥ 3.9 < 3.9.4 3.9.4 composer require "moodle/moodle:^3.9.4"
Packagist moodle/moodle ≥ 3.10 < 3.10.1 3.10.1 composer require "moodle/moodle:^3.10.1"

Per OSV / GitHub Advisories (GHSA-2jrm-gww7-wch2). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
moodlemoodle< 3.5.16
moodlemoodle≥ 3.8.0 < 3.8.7
moodlemoodle≥ 3.9.0 < 3.9.4
moodlemoodle3.10.0

Official sources

References

Links published by the sources. Open them with care.