Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. moodle/moodle
  4. ›
  5. CVE-2021-20187

CVE-2021-20187: Code Injection

January 28, 2021 (updated October 21, 2022)

It was found in Moodle that it was possible for site administrators to execute arbitrary PHP scripts via a PHP include used during Shibboleth authentication.

References

  • moodle.org/mod/forum/discuss.php?d=417171
  • nvd.nist.gov/vuln/detail/CVE-2021-20187

Code Behaviors & Features

Detect and mitigate CVE-2021-20187 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.5.16, all versions starting from 3.8.0 before 3.8.7, all versions starting from 3.9.0 before 3.9.4, version 3.10.0

Fixed versions

  • 3.5.16
  • 3.8.7
  • 3.9.4
  • 3.10.1

Solution

Upgrade to versions 3.5.16, 3.8.7, 3.9.4, 3.10.1 or above.

Impact 7.2 HIGH

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

Learn more about CVSS

Weakness

  • CWE-829: Inclusion of Functionality from Untrusted Control Sphere

Source file

packagist/moodle/moodle/CVE-2021-20187.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:02 +0000.