VDB

CVE-2021-20187

CVE-2021-20187 PUBLISHED

Moodle Arbitrary PHP code execution by site admins via Shibboleth configuration

Reported by redhat · Published January 28, 2021

moodle/moodle is fixed in 3.10.1, 3.9.4, 3.8.7 and 1 more (Packagist)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
moodle/moodlePackagist3.10.1, 3.9.4, 3.8.7, 3.5.16
moodleBitnami3.10.1, 3.9.4, 3.8.7, 3.5.16

Affected products

VendorProductVersions
n/amoodlemoodle 3.10.1, moodle 3.9.4, moodle 3.8.7, moodle 3.5.16
n/amoodlemoodle 3.10.1, moodle 3.9.4, moodle 3.8.7, moodle 3.5.16

Timeline

  • Jan 26, 2021 CVE Published
  • Jan 28, 2021 PoC Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Mar 17, 2026 Security Advisory
  • Aug 27, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-20187
vulnetix vdb fixes CVE-2021-20187

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-20187/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

  • x_refsource_MISC
Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›