CVE-2024-45691: Moodle: lesson activity password bypass through php loose comparison

Published Sep 4, 2024
·
Updated

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.

Other sources

When restricting access to a Lesson activity with a password, certain passwords could be bypassed/less secure due to a loose comparison in the password checking logic. (Note: this only affected passwords that are set to "magic hash" values. These are certain values where a loose comparison in the code can result in multiple values "matching" the password, instead of the expected behaviour that only an exact match for the password will be accepted).

Red Hat

Affected Software

8 affected componentsFixes available
composer/moodle/moodle>=4.4.0-beta<4.4.3
4.4.3
composer/moodle/moodle>=4.3.0-beta<4.3.7
4.3.7
composer/moodle/moodle>=4.2.0-beta<4.2.10
4.2.10
composer/moodle/moodle<4.1.13
4.1.13
Moodle moodle<4.1.13
Moodle moodle>=4.2.0<4.2.10
Moodle moodle>=4.3.0<4.3.7
Moodle moodle>=4.4.0<4.4.3

Event History

Sep 4, 2024
Data Sourced
via Red Hat·10:14 PM
DescriptionSeverityAffected Software
Nov 20, 2024
CVE Published
via MITRE·10:25 AM
Data Sourced
via MITRE·10:25 AM
Description
Data Sourced
via NVD·11:15 AM
Description
Data Sourced
via NVD·11:15 AM
Severity
Advisory Published
via GitHub·12:30 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-45691?

CVE-2024-45691 has been classified as a medium severity vulnerability due to the potential bypass of password restrictions.

2

How do I fix CVE-2024-45691?

To fix CVE-2024-45691, update Moodle to version 4.4.3, 4.3.7, 4.2.10, or 4.1.13.

3

What versions of Moodle are affected by CVE-2024-45691?

CVE-2024-45691 affects Moodle versions below 4.4.3, 4.3.7, 4.2.10, and 4.1.13.

4

What impact does CVE-2024-45691 have on Moodle's security?

The impact of CVE-2024-45691 allows attackers to bypass password restrictions on lesson activities, potentially compromising the security of content.

5

Is CVE-2024-45691 specific to a particular password type?

Yes, CVE-2024-45691 specifically affects passwords set to 'magic hash' values in Moodle.

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203