5.4medium
Moodle: lesson activity password bypass through php loose comparison
- Severity
- 5.4medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.41% (higher than 37% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- fedora
- Also known as
- GHSA-xfv7-h2qg-rjm7BIT-MOODLE-2024-45691
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| moodle | before 4.1.13, from 4.2 before 4.2.10, from 4.3 before 4.3.7, from 4.4 before 4.4.3 | CVE List |
| moodle/moodle (Packagist) | before 4.1.13, from 4.2.0-beta before 4.2.10, from 4.3.0-beta before 4.3.7, from 4.4.0-beta before 4.4.3 | GitHub Advisory Database |
| moodle moodle | before 4.1.13, from 4.2.0 before 4.2.10, from 4.3.0 before 4.3.7, from 4.4.0 before 4.4.3 | NVD |
| moodle (Bitnami) | before 4.1.13, from 4.2.0 before 4.2.10, from 4.3.0 before 4.3.7, from 4.4.0 before 4.4.3 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
| GitHub | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N |
| Bitnami Vulnerability Database | medium rating |
Classification
What each source says
CVE List
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.
NVD (es)
Se encontró una falla en Moodle. Al restringir el acceso a una actividad de lección con una contraseña, ciertas contraseñas podían ser ignoradas o menos seguras debido a una comparación poco precisa en la lógica de verificación de contraseñas. Este problema solo afectaba a las contraseñas configuradas con valores de "hash mágico".
References
| https://bugzilla.redhat.com/show_bug.cgi?id=2309940 | issue-tracking, report, web | |
| https://moodle.org/security/ | advisory, vendor-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-45691 | advisory, web | |
| https://github.com/moodle/moodle/commit/3fc1073d304f660d2552b591c5fb92547ed01e92 | web | |
| https://github.com/moodle/moodle | package | |
| https://moodle.org/mod/forum/discuss.php?d=461897#p1854494 | web | |
| https://moodle.org/security | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-45691 changed 2024-11-20 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-xfv7-h2qg-rjm7 changed 2025-06-03 | CC-BY-4.0 |
| NVD | CVE-2024-45691 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-MOODLE-2024-45691 changed 2026-09-08 | Apache-2.0 |