CVE-2012-0797: Moodle Users Can Bypass Deleted Status

moodle/moodle Updated 02 Oct 2025

Summary

13/05/2022
Yes i
Moderate
Not published

CVE-2012-0797: Moodle Users Can Bypass Deleted Status. Affects moodle/moodle across 3 version ranges.

>= 2.0, < 2.0.7 >= 2.1, < 2.1.4 >= 2.2, < 2.2.1

Fixed in 2.0.7, 2.1.4 or 2.2.1, depending on the release line you run. 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 by educational institutions worldwide. It provides a platform for creating and managing online courses, allowing educators to deliver content, interact with students, and track their progress. Moodle is written in PHP and offers various features such as forums, quizzes, assignments, and user management. However, a vulnerability has been discovered in Moodle versions 2.0.x, 2.1.x, and 2.2.x that allows remote authenticated users to bypass the deleted status and continue using a server via a token.

Vulnerability Detail

The vulnerability in Moodle's webservices functionality allows authenticated users to bypass the deleted status and retain access to the server through a token. This means that even if a user account has been marked as deleted, they can still use the server's resources and perform actions as if they were an active user. This can lead to unauthorized access, data leakage, and potential misuse of the system. The vulnerability has a moderate severity rating and is identified by the Common Weakness Enumeration (CWE) ID 287.

How To Fix

Fixed versions by release line

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

  • >= 2.0, < 2.0.7 2.0.7
    composer require moodle/moodle:2.0.7
  • >= 2.1, < 2.1.4 2.1.4
    composer require moodle/moodle:2.1.4
  • >= 2.2, < 2.2.1 2.2.1
    composer require moodle/moodle:2.2.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 specific workaround mentioned for this vulnerability. The recommended approach is to apply the available patches or upgrade to the fixed versions of Moodle.

Conclusion

The discovered vulnerability in Moodle allows authenticated users to bypass the deleted status and retain access to the server. To mitigate this risk, it is crucial to upgrade to the patched versions of Moodle or apply the available security patches. Regularly updating Moodle installations is essential to ensure the security and integrity of the system. 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 (LMS) used by educational institutions to create and manage online courses.

The vulnerability allows authenticated users to bypass the deleted status and continue using the server, potentially leading to unauthorized access and misuse of the system.

To fix the vulnerability, it is recommended to upgrade to the patched versions of Moodle (2.2.1, 2.1.4, or 2.0.7).

There is no specific workaround mentioned. Applying the available patches or upgrading to the fixed versions is the recommended solution.

The vulnerability has a moderate severity rating.

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.

  • >= 2.0, < 2.0.7 2.0.7
    composer require moodle/moodle:2.0.7
  • >= 2.1, < 2.1.4 2.1.4
    composer require moodle/moodle:2.1.4
  • >= 2.2, < 2.2.1 2.2.1
    composer require moodle/moodle:2.2.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