CVE-2011-4287: Moodle Package Vulnerability - Password Change Not Enforced for Autosubscribed Users

moodle/moodle Updated 14 Dec 2025

Summary

13/05/2022
Yes i
Moderate
6.9

CVE-2011-4287: Moodle does not force password changes for autosubscribed users. Affects moodle/moodle versions >= 2.0.0, < 2.0.2. Fixed in 2.0.2. How to fix ↓

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

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile 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 is widely used in educational institutions for course management and online learning. However, certain versions of Moodle have a vulnerability that does not enforce password changes for users who are automatically subscribed to courses, potentially compromising user accounts.

Vulnerability Detail

The vulnerability identified as CVE-2011-4287 exists in the admin/uploaduser_form.php file of Moodle versions 2.0.x prior to 2.0.3. It allows remote attackers to gain unauthorized access to user accounts by exploiting the lack of enforced password changes for new users who are automatically subscribed to courses. This oversight can lead to unauthorized access if an attacker knows the initial password of a new user, thereby posing a moderate security risk.

How To Fix

Minimum fixed version

2.0.2

This is the first release that contains the fix.

composer require moodle/moodle:2.0.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, administrators can manually enforce password changes for new users by implementing a policy that requires users to change their passwords upon first login. This can be done by configuring user settings in the Moodle administration panel.

Conclusion

The CVE-2011-4287 vulnerability in Moodle highlights the importance of enforcing password changes for new users to prevent unauthorized access. By updating to the patched version and implementing additional security measures, administrators can protect their users and maintain the integrity of their learning environments.

See every vulnerability recorded for moodle/moodle →

Share this vulnerability

FAQ

CVE-2011-4287 is a vulnerability in Moodle that allows unauthorized access to user accounts due to the lack of enforced password changes for autosubscribed users.

Moodle versions 2.0.x prior to 2.0.3 are affected by this vulnerability.

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

The primary risk is unauthorized access to user accounts, which can lead to data breaches and compromise user privacy.

Ensure that you update Moodle to the latest version and consider implementing policies that require users to change their passwords upon first login.

Related vulnerabilities

Recent vulnerabilities recorded for moodle/moodle.

How To Fix

Minimum fixed version

2.0.2

This is the first release that contains the fix.

composer require moodle/moodle:2.0.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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