Skip to content
OpenAdvisories
High · 7.2 CVE-2021-20187 BIT-moodle-2021-20187EUVD-2022-2005GHSA-2jrm-gww7-wch2

Moodle Arbitrary PHP code execution by site admins via Shibboleth configuration

Published Jan 28, 2021 · Updated Aug 3, 2024 · Assigned by redhat

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.

Affected products

VendorProductAffectedFixed
— moodle moodle 3.10.1, moodle 3.9.4, moodle 3.8.7, moodle 3.5.16 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS moodle No fix yet —
Ubuntu Pro 16.04 LTS moodle No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist moodle/moodle >= 3.5, < 3.5.16 3.5.16 GHSA-2jrm-gww7-wch2
Packagist moodle/moodle >= 3.8, < 3.8.7 3.8.7 GHSA-2jrm-gww7-wch2
Packagist moodle/moodle >= 3.9, < 3.9.4 3.9.4 GHSA-2jrm-gww7-wch2
Packagist moodle/moodle >= 3.10, < 3.10.1 3.10.1 GHSA-2jrm-gww7-wch2

References