CVE-2021-36397: Moodle - Insufficient Capability Checks in Message Deletion

moodle Updated 02 Oct 2025

Summary

06/03/2024
Yes i
Medium
Not published

CVE-2021-36397: In Moodle, insufficient capability checks meant message deletions were not limited to the current user. 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-36397 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

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 by educational institutions worldwide. It provides a platform for creating and delivering online courses, managing student enrollment, and facilitating communication between teachers and students. Moodle is widely adopted due to its flexibility, extensibility, and robust feature set. However, a vulnerability has been identified in Moodle that allows unauthorized users to delete messages without proper capability checks.

Vulnerability Detail

The vulnerability (CVE-2021-36397) in Moodle arises from insufficient capability checks during message deletions. This means that any user, regardless of their privileges, can delete messages within the system. This could lead to unauthorized removal of important communication, loss of data, or disruption of the learning process. The vulnerability affects versions 3.9.8, 3.10.0 to 3.10.5, and 3.11.0 to 3.11.1 of 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 →

Workaround

As a temporary workaround, administrators can restrict message deletion capabilities to trusted users only. This can be achieved by modifying the permissions settings within Moodle to limit the ability to delete messages. However, this workaround should be considered temporary, and upgrading to the patched versions is strongly advised.

Conclusion

The vulnerability in Moodle that allows unauthorized message deletions can be mitigated by upgrading to the latest patched versions. Administrators can also implement a temporary workaround by restricting message deletion capabilities. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for moodle →

Share this vulnerability

FAQ

Moodle is an open-source learning management system used by educational institutions for online course management and communication.

The vulnerability allows unauthorized users to delete messages within Moodle, potentially leading to data loss or disruption of the learning process.

Versions 3.9.8, 3.10.0 to 3.10.5, and 3.11.0 to 3.11.1 of Moodle are affected by this vulnerability.

To fix this vulnerability, upgrade to the latest patched versions of Moodle (3.9.8, 3.10.5, or 3.11.1).

As a temporary workaround, administrators can restrict message deletion capabilities to trusted users only.

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