CVE-2015-5265: Moodle allows attackers to delete files

moodle/moodle Updated 02 Oct 2025

Summary

13/05/2022
Yes i
Moderate
4.3

CVE-2015-5265: Moodle allows attackers to delete files. Affects moodle/moodle across 3 version ranges.

>= 2.7.0, < 2.7.10 >= 2.8.0, < 2.8.8 >= 2.9.0, < 2.9.2

Fixed in 2.7.10, 2.8.8 or 2.9.2, 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 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 (LMS) used by educational institutions to create and manage online courses. It provides various features such as course management, user management, content creation, and collaboration tools. Moodle versions prior to 2.9.2 are affected by a vulnerability in the wiki component. This vulnerability allows remote authenticated users to delete arbitrary files by exploiting a flaw in the file management authorization process.

Vulnerability Detail

The vulnerability in Moodle's wiki component arises from a failure to consider the 'mod/wiki:managefiles' capability before authorizing file management. This oversight enables remote authenticated users to delete any files by utilizing a 'manage-files' button in a text editor. By exploiting this vulnerability, an attacker can maliciously delete important files, potentially causing data loss or disrupting the functionality of the affected Moodle instance.

How To Fix

Fixed versions by release line

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

  • >= 2.7.0, < 2.7.10 2.7.10
    composer require moodle/moodle:2.7.10
  • >= 2.8.0, < 2.8.8 2.8.8
    composer require moodle/moodle:2.8.8
  • >= 2.9.0, < 2.9.2 2.9.2
    composer require moodle/moodle:2.9.2

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 disable the wiki component in Moodle until the system can be upgraded to a patched version. This can be done by navigating to the Moodle administration panel, selecting the 'Plugins' section, and disabling the 'Wiki' plugin. Disabling the plugin will prevent users from accessing the wiki functionality, effectively mitigating the risk of file deletion through this vulnerability.

Conclusion

In conclusion, Moodle versions prior to 2.9.2 are vulnerable to an issue that allows remote authenticated users to delete arbitrary files. Upgrading to the latest version of Moodle or disabling the wiki component can mitigate this vulnerability. For further assistance with 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.

Moodle versions prior to 2.9.2 are affected by this vulnerability.

An attacker with remote authenticated access can exploit this vulnerability by using the 'manage-files' button in a text editor to delete arbitrary files.

This vulnerability allows attackers to delete important files, potentially causing data loss or disrupting the functionality of the affected Moodle instance.

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

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.7.0, < 2.7.10 2.7.10
    composer require moodle/moodle:2.7.10
  • >= 2.8.0, < 2.8.8 2.8.8
    composer require moodle/moodle:2.8.8
  • >= 2.9.0, < 2.9.2 2.9.2
    composer require moodle/moodle:2.9.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