CVE-2025-3634: Moodle Self Enrollment Bypass with MFA Enabled

moodle/moodle Updated 02 Oct 2025

Summary

25/04/2025
Yes i
Moderate
4.3

CVE-2025-3634: Moodle self enrollment available before completing second factor with MFA enabled. Affects moodle/moodle across 3 version ranges.

>= 4.3.0-beta, < 4.3.12 >= 4.4.0-beta, < 4.4.8 >= 4.5.0-beta, < 4.5.4

Fixed in 4.3.12, 4.4.8 or 4.5.4, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2025-3634 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Moodle is an open-source learning platform designed to provide educators, administrators, and learners with a single robust, secure, and integrated system to create personalized learning environments. It offers features such as course management, user enrollment, and assessment tools. However, a vulnerability has been identified that allows students to enroll in courses without completing the necessary multi-factor authentication (MFA) checks, potentially compromising the security of course access.

Vulnerability Detail

A security vulnerability in Moodle allows students to enroll themselves in courses without completing the required two-step verification process when MFA is enabled. This issue arises from improper handling of enrollment requests, which can lead to unauthorized access to course materials and sensitive information. The vulnerability is classified under CWE-287, indicating a failure in authentication mechanisms. If exploited, this could lead to unauthorized course access, impacting both students and educators.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 4.3.0-beta, < 4.3.12 4.3.12
    composer require moodle/moodle:4.3.12
  • >= 4.4.0-beta, < 4.4.8 4.4.8
    composer require moodle/moodle:4.4.8
  • >= 4.5.0-beta, < 4.5.4 4.5.4
    composer require moodle/moodle:4.5.4

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a temporary workaround, administrators can disable self-enrollment for courses until the package is updated. This can be done by navigating to the course settings and unchecking the self-enrollment option.

Conclusion

In summary, the identified vulnerability in Moodle allows unauthorized course enrollment due to improper MFA handling. It is crucial for administrators to update their Moodle installations to the latest patched versions to ensure security and prevent unauthorized access. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for moodle/moodle →

Share this vulnerability

FAQ

The vulnerability allows students to enroll in courses without completing the MFA process, which can lead to unauthorized access.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

The vulnerability affects Moodle versions starting from 4.3.0-beta up to the fixed versions of 4.3.12, 4.4.8, and 4.5.4.

If immediate updates are not possible, consider disabling self-enrollment as a temporary measure to mitigate risks.

The CVSS score of this vulnerability is 4.3, indicating a moderate level of severity.

Related vulnerabilities

Recent vulnerabilities recorded for moodle/moodle.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 4.3.0-beta, < 4.3.12 4.3.12
    composer require moodle/moodle:4.3.12
  • >= 4.4.0-beta, < 4.4.8 4.4.8
    composer require moodle/moodle:4.4.8
  • >= 4.5.0-beta, < 4.5.4 4.5.4
    composer require moodle/moodle:4.5.4

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback