VDB
Sign up
MEDIUM6.8

GHSA-454r-4cjv-vc9h

Moodle allows attackers to obtain manager privileges

Quick fix

GHSA-454r-4cjv-vc9h — moodle/moodle: upgrade to the fixed version with the command below.

composer require moodle/moodle:^2.7.10

Details

The enrol_meta_sync function in enrol/meta/locallib.php in Moodle through 2.6.11, 2.7.x before 2.7.10, 2.8.x before 2.8.8, and 2.9.x before 2.9.2 allows remote authenticated users to obtain manager privileges in opportunistic circumstances by leveraging incorrect role processing during a long-running sync script.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/moodle/moodle
Introduced in: 2.7.0Fixed in: 2.7.10
Fixcomposer require moodle/moodle:^2.7.10
Packagist/moodle/moodle
Introduced in: 2.8.0Fixed in: 2.8.8
Fixcomposer require moodle/moodle:^2.8.8
Packagist/moodle/moodle
Introduced in: 2.9.0Fixed in: 2.9.2
Fixcomposer require moodle/moodle:^2.9.2

References