CVE-2024-34003: Moodle Local File Inclusion Vulnerability in Misconfigured Shared Hosting Environments

moodle Updated 02 Oct 2025

Summary

02/05/2025
Yes i
Medium
Not published

CVE-2024-34003: In a shared hosting environment that has been misconfigured to allow access to other users' content, a Moodle user with both access to restore workshop modules and direct access to the web server outside of the Moodle we... Affects moodle across 3 version ranges.

< 4.1.10 >= 4.2.0, < 4.2.7 >= 4.3.0, < 4.3.4

Fixed in 4.1.10, 4.2.7 or 4.3.4, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2024-34003 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 Devnack Your last release was probably never penetration tested 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 platform designed to provide educators, administrators, and learners with a single robust, secure, and integrated system to create personalized learning environments. It is widely used in educational institutions and organizations for online learning and course management. However, in certain misconfigured shared hosting environments, Moodle can be vulnerable to local file inclusion attacks, particularly when users have access to restore workshop modules and direct access to the web server outside of the Moodle webroot.

Vulnerability Detail

The vulnerability arises from improper configuration in shared hosting environments that allow users to access content belonging to other users. A Moodle user with the ability to restore workshop modules can exploit this misconfiguration to execute a local file inclusion attack. This could lead to unauthorized access to sensitive files on the server, potentially exposing confidential information and compromising the integrity of the application.

How To Fix

Fixed versions by release line

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

  • < 4.1.10 4.1.10
  • >= 4.2.0, < 4.2.7 4.2.7
  • >= 4.3.0, < 4.3.4 4.3.4

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

Workaround

If immediate patching is not feasible, consider restricting access to the web server for users who can restore workshop modules. This can be done by adjusting file permissions and ensuring that users do not have access to directories outside of their own content.

Conclusion

CVE-2024-34003 presents a significant risk for Moodle installations in misconfigured shared hosting environments. It is crucial to update to the latest patched versions to mitigate this vulnerability and protect sensitive information. Additionally, implementing proper access controls can serve as a temporary workaround until the update is applied.

See every vulnerability recorded for moodle →

Share this vulnerability

FAQ

CVE-2024-34003 is a vulnerability in Moodle that allows local file inclusion in misconfigured shared hosting environments.

You can check your Moodle version against the patched versions (4.1.10, 4.2.7, 4.3.4 or later) or use Vulert's playground to monitor for vulnerabilities.

The risks include unauthorized access to sensitive files and potential compromise of the Moodle application, leading to data breaches.

Follow the steps outlined in the 'how_to_fix' section to safely update your Moodle installation to a patched version.

Vulert monitors and alerts for open-source vulnerabilities in software using a manifest file. You can check if your application is affected by vulnerabilities like CVE-2024-34003 without any signup.

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.

  • < 4.1.10 4.1.10
  • >= 4.2.0, < 4.2.7 4.2.7
  • >= 4.3.0, < 4.3.4 4.3.4

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