CVE-2019-3852: Moodle context freezing

moodle/moodle Updated 02 Oct 2025

Summary

13/05/2022
Yes i
Moderate
4.3

CVE-2019-3852: Moodle context freezing. Affects moodle/moodle versions >= 3.6, < 3.6.3. Fixed in 3.6.3. 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 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 management system (LMS) used by educational institutions worldwide. It provides a platform for creating and managing online courses, allowing educators to deliver content and interact with students. Moodle is widely used due to its flexibility, extensibility, and community support. However, a vulnerability has been discovered in Moodle before version 3.6.3.

Vulnerability Detail

The vulnerability, identified as CVE-2019-3852, stems from the get_with_capability_join and get_users_by_capability functions in Moodle. These functions fail to consider context freezing when checking user capabilities. As a result, an attacker with limited privileges may exploit this flaw to gain unauthorized access or perform actions beyond their intended scope. The impact of this vulnerability can range from unauthorized data access to potential privilege escalation.

How To Fix

Minimum fixed version

3.6.3

This is the first release that contains the fix.

composer require moodle/moodle:3.6.3

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

Workaround

No specific workaround has been provided for this vulnerability. It is crucial to apply the official patch or upgrade to the latest version of Moodle to mitigate the risk effectively.

Conclusion

In conclusion, the vulnerability in Moodle before version 3.6.3 allows attackers with limited privileges to potentially gain unauthorized access or perform unauthorized actions. It is crucial for administrators to upgrade their Moodle installations to the latest version or apply the official patch to mitigate the risk. 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 (LMS) used by educational institutions to create and manage online courses.

The vulnerability allows attackers with limited privileges to potentially gain unauthorized access or perform actions beyond their intended scope.

To fix this vulnerability, it is recommended to upgrade Moodle to version 3.6.3 or later.

No specific workaround has been provided. It is essential to apply the official patch or upgrade to the latest version of Moodle.

For more information about this vulnerability, you can refer to the CVE-2019-3852 advisory or contact the Moodle support team.

Related vulnerabilities

Recent vulnerabilities recorded for moodle/moodle.

How To Fix

Minimum fixed version

3.6.3

This is the first release that contains the fix.

composer require moodle/moodle:3.6.3

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