VDB
Sign up
MEDIUM5.4

GHSA-g9m2-c2x5-fr2v

Moodle does not revoke role capabilities correctly

Quick fix

GHSA-g9m2-c2x5-fr2v — moodle/moodle: upgrade to the fixed version with the command below.

composer require moodle/moodle:^3.7.3

Details

A vulnerability was found in Moodle versions 3.7.x before 3.7.3, 3.6.x before 3.6.7 and 3.5.x before 3.5.9. When a cohort role assignment was removed, the associated capabilities were not being revoked (where applicable).

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/moodle/moodle
Introduced in: 3.7.0Fixed in: 3.7.3
Fixcomposer require moodle/moodle:^3.7.3
Packagist/moodle/moodle
Introduced in: 3.6.0Fixed in: 3.6.7
Fixcomposer require moodle/moodle:^3.6.7
Packagist/moodle/moodle
Introduced in: 3.5.0Fixed in: 3.5.9
Fixcomposer require moodle/moodle:^3.5.9

References