CVE-2024-45691: moodle · lesson activity password bypass through php loose comparison
Affects moodleSource CVE Database V5
Not known to be exploited · CVSS 5.4 Medium · fixed in 4.4.3 : update moodle when convenient.
Data as of 26 Oct 2026, 08:30 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 35% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 4.4.3, 4.3.7, 4.2.10 +1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 20 Nov 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade moodle to 4.4.3, 4.3.7, 4.2.10 or 4.1.13.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| moodle | Affected
| Fixed in
|
GitHubmoodlepkg:github/moodleOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
1. Immediately review and avoid using password restrictions on lesson activities that rely on the vulnerable password-checking logic, especially those using 'magic hash' values. 2. Monitor Moodle access logs for unusual or unauthorized access attempts to restricted lessons. 3. Apply strict input validation and ensure password comparisons use strict equality checks rather than loose comparisons in custom or third-party plugins. 4. 5. Consider implementing multi-factor authentication (MFA) for Moodle access to add an additional security layer beyond password restrictions. 6. Educate instructors and administrators about the vulnerability and encourage the use of alternative access control mechanisms until patched. 7. If patching is delayed, temporarily disable password restrictions on lessons or replace them with role-based access controls to mitigate risk. 8. Conduct security audits and penetration testing focused on authentication and access control mechanisms within Moodle environments.
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.