CVE-2021-20283: Missing permission check in Moodle

moodle/moodle Updated 02 Oct 2025

Summary

24/05/2022
Yes i
Moderate
4.3

CVE-2021-20283: Missing permission check in Moodle. Affects moodle/moodle across 4 version ranges.

< 3.5.17 >= 3.8.0, < 3.8.8 >= 3.9.0, < 3.9.5 >= 3.10.0, < 3.10.2

Fixed in 4 releases; the minimum fixed version depends on the release line you run. How to fix ↓

Also tracked for

The same CVE-2021-20283 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 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 to create and manage online courses. It provides various features for course administration, content creation, and student engagement. Moodle is widely adopted and used by organizations worldwide. However, a vulnerability has been identified in Moodle versions 3.10.2, 3.9.5, 3.8.8, and 3.5.17.

Vulnerability Detail

The vulnerability in Moodle allows the web service responsible for fetching other users' enrolled courses to be accessed without proper permission checks. This means that an unauthorized user could retrieve information about courses they are not supposed to have access to. The lack of validation in the requesting user's permissions could lead to a breach of confidentiality and unauthorized access to sensitive course data. The vulnerability has a CVSS score of 4.3, indicating a moderate severity level.

How To Fix

Fixed versions by release line

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

  • < 3.5.17 3.5.17
    composer require moodle/moodle:3.5.17
  • >= 3.8.0, < 3.8.8 3.8.8
    composer require moodle/moodle:3.8.8
  • >= 3.9.0, < 3.9.5 3.9.5
    composer require moodle/moodle:3.9.5
  • >= 3.10.0, < 3.10.2 3.10.2
    composer require moodle/moodle:3.10.2

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

Workaround

If upgrading to the latest version is not immediately feasible, a temporary workaround can be implemented by disabling the affected web service or restricting access to it. This can be done by modifying the Moodle configuration or using access control mechanisms at the network level. However, it is strongly advised to upgrade to the patched version as soon as possible to fully address the vulnerability.

Conclusion

The vulnerability in Moodle versions 3.10.2, 3.9.5, 3.8.8, and 3.5.17 allows unauthorized users to access course information without proper permission checks. To mitigate this vulnerability, it is crucial to upgrade to the latest patched version of Moodle. If immediate upgrading is not possible, implementing a temporary workaround by disabling the affected web service or restricting access can provide some protection. For further assistance and support in 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 managing online courses.

The vulnerability affects Moodle versions 3.10.2, 3.9.5, 3.8.8, and 3.5.17.

The vulnerability allows unauthorized users to access information about courses they are not supposed to have access to, potentially leading to a breach of confidentiality and unauthorized access to sensitive course data.

To fix this vulnerability, it is recommended to upgrade to the latest patched version of Moodle (3.10.2, 3.9.5, 3.8.8, or 3.5.17).

A temporary workaround can be implemented by disabling the affected web service or restricting access to it. However, upgrading to the patched version is strongly advised.

Related vulnerabilities

Recent vulnerabilities recorded for moodle/moodle.

How To Fix

Fixed versions by release line

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

  • < 3.5.17 3.5.17
    composer require moodle/moodle:3.5.17
  • >= 3.8.0, < 3.8.8 3.8.8
    composer require moodle/moodle:3.8.8
  • >= 3.9.0, < 3.9.5 3.9.5
    composer require moodle/moodle:3.9.5
  • >= 3.10.0, < 3.10.2 3.10.2
    composer require moodle/moodle:3.10.2

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