CVE-2011-4293: Moodle Double-Caches Content, Potentially Writing to a File System's Tmp Directory

moodle/moodle Updated 02 Oct 2025

Summary

13/05/2022
Yes i
Moderate
Not published

CVE-2011-4293: Moodle Double-Caches Content, Potentially Writing to a File System's Tmp Directory. Affects moodle/moodle across 2 version ranges.

>= 2.0, < 2.0.4 >= 2.1, < 2.1.1

Fixed in 2.0.4 or 2.1.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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 written in PHP and relies on a database backend for storing course content, user information, and system configuration. This vulnerability affects Moodle versions 2.0.x before 2.0.4 and 2.1.x before 2.1.1.

Vulnerability Detail

The theme implementation in Moodle triggers duplicate caching of Cascading Style Sheets (CSS) and JavaScript content. This duplication allows remote attackers to bypass intended access restrictions and write to an operating-system temporary directory using unspecified vectors. By exploiting this vulnerability, an attacker could potentially gain unauthorized access to sensitive files or execute arbitrary code on the server. The impact of this vulnerability depends on the permissions and configuration of the affected Moodle installation.

How To Fix

Fixed versions by release line

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

  • >= 2.0, < 2.0.4 2.0.4
    composer require moodle/moodle:2.0.4
  • >= 2.1, < 2.1.1 2.1.1
    composer require moodle/moodle:2.1.1

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 a patched version is not immediately possible, administrators can implement a temporary workaround by disabling the caching of CSS and JavaScript content in the Moodle theme. This can be done by modifying the theme configuration settings or by applying a custom code modification. However, this workaround may impact the performance of the Moodle site and should only be used as a temporary measure until the upgrade can be performed.

Conclusion

The vulnerability in Moodle versions 2.0.x and 2.1.x allows remote attackers to bypass access restrictions and write to the file system's temporary directory. It is crucial for administrators to upgrade their Moodle installations to the recommended versions or apply the temporary workaround to mitigate the risk. For further support on 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 worldwide. It provides a platform for creating and delivering online courses, managing student enrollment, and facilitating communication between teachers and students.

This vulnerability affects Moodle versions 2.0.x before 2.0.4 and 2.1.x before 2.1.1.

By exploiting this vulnerability, an attacker could potentially gain unauthorized access to sensitive files or execute arbitrary code on the server. The impact depends on the permissions and configuration of the affected Moodle installation.

To fix this vulnerability, it is recommended to upgrade to Moodle version 2.0.4 or later for Moodle 2.0.x installations, and version 2.1.1 or later for Moodle 2.1.x installations. Administrators should follow the official Moodle documentation for upgrading their installations.

If upgrading to a patched version is not immediately possible, administrators can disable the caching of CSS and JavaScript content in the Moodle theme as a temporary workaround. However, this may impact the performance of the Moodle site and should only be used until the upgrade can be performed.

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.4 2.0.4
    composer require moodle/moodle:2.0.4
  • >= 2.1, < 2.1.1 2.1.1
    composer require moodle/moodle:2.1.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