MEDIUM5.4
GHSA-xfv7-h2qg-rjm7
Moodle Lesson activity password bypass through PHP loose comparison
Quick fix
GHSA-xfv7-h2qg-rjm7 — moodle/moodle: upgrade to the fixed version with the command below.
composer require moodle/moodle:^4.1.13Details
A flaw was found in Moodle. When restricting access to a lesson activity with a password, certain passwords could be bypassed or less secure due to a loose comparison in the password-checking logic. This issue only affected passwords set to "magic hash" values.
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/moodle/moodle
Introduced in:
4.2.0-betaFixed in: 4.2.10Fix
composer require moodle/moodle:^4.2.10Packagist/moodle/moodle
Introduced in:
4.3.0-betaFixed in: 4.3.7Fix
composer require moodle/moodle:^4.3.7Packagist/moodle/moodle
Introduced in:
4.4.0-betaFixed in: 4.4.3Fix
composer require moodle/moodle:^4.4.3References
- https://nvd.nist.gov/vuln/detail/CVE-2024-45691[ADVISORY]
- https://github.com/moodle/moodle/commit/3fc1073d304f660d2552b591c5fb92547ed01e92[WEB]
- https://bugzilla.redhat.com/show_bug.cgi?id=2309940[WEB]
- https://github.com/moodle/moodle[PACKAGE]
- https://moodle.org/mod/forum/discuss.php?d=461897#p1854494[WEB]
- https://moodle.org/security[WEB]