CVE-2021-36395: Moodle - Denial of Service Vulnerability

moodle Updated 02 Oct 2025

Summary

06/03/2024
Yes i
High
Not published

CVE-2021-36395: In Moodle, the file repository's URL parsing required additional recursion handling to mitigate the risk of recursion denial of service. Affects moodle across 3 version ranges.

< 3.9.8 >= 3.10.0, < 3.10.5 >= 3.11.0, < 3.11.1

Fixed in 3.9.8, 3.10.5 or 3.11.1, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2021-36395 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Moodle is an open-source learning management system used by educational institutions to create and manage online courses. It provides various features such as course management, user management, and content management. Moodle is widely used and has a large user base.

Vulnerability Detail

The vulnerability identified as CVE-2021-36395 in Moodle is related to the file repository's URL parsing. It lacks proper recursion handling, which can be exploited to launch a denial of service attack. An attacker can send a specially crafted URL that triggers excessive recursion, leading to resource exhaustion and potentially causing the Moodle instance to become unresponsive or crash. This vulnerability has a high severity rating and can have a significant impact on the availability of the Moodle platform.

How To Fix

Fixed versions by release line

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

  • < 3.9.8 3.9.8
  • >= 3.10.0, < 3.10.5 3.10.5
  • >= 3.11.0, < 3.11.1 3.11.1

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

Workaround

There is no known workaround for this vulnerability. It is essential to apply the provided updates to address the issue effectively.

Conclusion

The vulnerability in Moodle's file repository URL parsing can be exploited to launch denial of service attacks. It is crucial for administrators to update their Moodle installations to the recommended versions to address this vulnerability and ensure the stability and security of their platforms. For further assistance with vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for moodle →

Share this vulnerability

FAQ

The vulnerability can lead to a denial of service, potentially causing the Moodle platform to become unresponsive or crash.

All Moodle installations using versions prior to 3.9.8, 3.10.5, or 3.11.1 are affected by this vulnerability.

No, authentication is not required. An attacker can exploit this vulnerability remotely without any authentication.

There are no known instances of this vulnerability being exploited in the wild at the time of this report.

No, updating Moodle to the recommended versions is the only effective way to mitigate this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for moodle.

How To Fix

Fixed versions by release line

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

  • < 3.9.8 3.9.8
  • >= 3.10.0, < 3.10.5 3.10.5
  • >= 3.11.0, < 3.11.1 3.11.1

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