Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2024-45691

0
Medium
VulnerabilityCVE-2024-45691cvecve-2024-45691
Published: Wed Nov 20 2024 (11/20/2024, 10:25:30 UTC)
Source: CVE Database V5

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/28/2026, 07:02:23 UTC

Technical Analysis

CVE-2024-45691 is a vulnerability discovered in Moodle, a widely used open-source learning management system. The issue specifically affects the password restriction mechanism for lesson activities. Moodle allows instructors to restrict access to lessons using passwords. However, the password-checking logic contains a loose comparison flaw when handling certain passwords set to 'magic hash' values. This loose comparison means that some passwords can be bypassed or treated as less secure, enabling unauthorized users to gain access to restricted lessons without knowing the correct password. The affected versions include Moodle 0, 4.2, 4.3, and 4.4. The vulnerability has a CVSS 3.1 base score of 5.4, indicating medium severity. The attack vector is network-based, requiring low privileges but no user interaction, and the scope is unchanged. The impact affects confidentiality and integrity by allowing unauthorized access and potential modification of lesson content or data exposure, but it does not affect availability. No known exploits have been reported in the wild yet. The root cause is the use of loose comparison operators in the password verification code, which can be exploited by attackers who know or guess the 'magic hash' values. This vulnerability highlights the importance of strict type and value checks in authentication mechanisms. Moodle administrators should be aware of this flaw and monitor for suspicious access attempts while awaiting patches.

Potential Impact

The primary impact of CVE-2024-45691 is unauthorized access to password-restricted lesson activities within Moodle. This can lead to confidentiality breaches where sensitive educational content or student data is exposed to unauthorized users. Integrity may also be compromised if attackers modify lesson content or progress data. Although availability is not affected, the breach of access controls undermines trust in the learning platform and could disrupt educational processes. Organizations relying on Moodle for critical training or compliance education may face regulatory or reputational consequences if sensitive information is leaked. Since the vulnerability requires only low privileges and no user interaction, exploitation could be automated or performed by relatively unskilled attackers. The lack of known exploits in the wild currently reduces immediate risk but does not eliminate the threat, especially as details become public. The widespread use of Moodle in educational institutions, government agencies, and enterprises globally increases the potential scope of impact.

Mitigation Recommendations

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. Stay updated with Moodle security advisories and apply official patches or updates as soon as they are released addressing CVE-2024-45691. 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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
fedora
Date Reserved
2024-09-04T22:00:30.976Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 699f6cefb7ef31ef0b56a585

Added to database: 2/25/2026, 9:43:11 PM

Last enriched: 2/28/2026, 7:02:23 AM

Last updated: 4/12/2026, 1:55:35 PM

Views: 18

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses