7.2
CWE
829 94
Advisory Published
Advisory Published
Updated

CVE-2021-20187: Code Injection

First published: Thu Jan 28 2021(Updated: )

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.

Credit: secalert@redhat.com secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
composer/moodle/moodle>=3.10<3.10.1
3.10.1
composer/moodle/moodle>=3.9<3.9.4
3.9.4
composer/moodle/moodle>=3.8<3.8.7
3.8.7
composer/moodle/moodle>=3.5<3.5.16
3.5.16
Moodle<3.5.16
Moodle>=3.8.0<3.8.7
Moodle>=3.9.0<3.9.4
Moodle=3.10.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2021-20187?

    CVE-2021-20187 has a medium severity rating due to the potential for site administrators to execute arbitrary PHP scripts.

  • How do I fix CVE-2021-20187?

    To fix CVE-2021-20187, update Moodle to version 3.10.1, 3.9.4, 3.8.7, or 3.5.16 or later.

  • Which versions of Moodle are affected by CVE-2021-20187?

    Moodle versions prior to 3.10.1, 3.9.4, 3.8.7, and 3.5.16 are vulnerable to CVE-2021-20187.

  • Can site administrators exploit CVE-2021-20187?

    Yes, site administrators can exploit CVE-2021-20187 to execute arbitrary PHP scripts through Shibboleth authentication.

  • Is there a workaround for CVE-2021-20187?

    No official workaround exists for CVE-2021-20187; the only mitigation is to upgrade to the patched versions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203