CVE-2006-4936: Moodle does not properly validate module instance id

moodle/moodle Updated 02 Oct 2025

Summary

01/05/2022
Yes i
Moderate
Not published

CVE-2006-4936: Moodle does not properly validate module instance id. Affects moodle/moodle versions < 1.6.2. Fixed in 1.6.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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Moodle is an open-source learning management system (LMS) used for creating and delivering online courses. It provides a platform for educators to create interactive and engaging learning experiences for students. Moodle is widely adopted in educational institutions and organizations worldwide. However, prior to version 1.6.2, Moodle had a vulnerability that allowed for improper validation of the module instance id when creating a course module object. This vulnerability could be exploited by remote attackers, although the specific impact is unspecified.

Vulnerability Detail

The vulnerability in Moodle arises from the lack of proper validation of the module instance id during the creation of a course module object. This oversight opens up the possibility of remote attacks, although the exact consequences are not specified. The vulnerability is assigned the CVE identifier CVE-2006-4936 and has a moderate severity rating. The Common Weakness Enumeration (CWE) identifier associated with this vulnerability is CWE-20.

How To Fix

Minimum fixed version

1.6.2

This is the first release that contains the fix.

composer require moodle/moodle:1.6.2

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

Workaround

There is no specific workaround mentioned for this vulnerability. The recommended course of action is to apply the available update to Moodle.

Conclusion

In conclusion, Moodle versions prior to 1.6.2 are vulnerable to a module instance id validation issue. This vulnerability could potentially be exploited by remote attackers. It is recommended to update Moodle to version 1.6.2 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for moodle/moodle →

Share this vulnerability

FAQ

Moodle is an open-source learning management system used for creating and delivering online courses.

The impact of this vulnerability is unspecified, but it has the potential to be exploited by remote attackers.

This vulnerability has a moderate severity rating.

The CVE identifier for this vulnerability is CVE-2006-4936.

To fix this vulnerability, update Moodle to version 1.6.2 or later.

Related vulnerabilities

Recent vulnerabilities recorded for moodle/moodle.

How To Fix

Minimum fixed version

1.6.2

This is the first release that contains the fix.

composer require moodle/moodle:1.6.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