Arbitrary File Read Vulnerability in Moodle
Summary
CVE-2014-3542: Moodle allows remote attackers to read arbitrary files. Affects moodle/moodle across 5 version ranges.
< 2.3.11
>= 2.4.0, < 2.4.11
>= 2.5.0, < 2.5.7
>= 2.6.0, < 2.6.4
>= 2.7.0, < 2.7.1
Fixed in 5 releases; the minimum fixed version depends on the release line you run. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
Moodle is an open-source learning management system (LMS) used by educational institutions to create and deliver online courses. It provides a platform for educators to create interactive learning environments and engage with students. Moodle is written in PHP and utilizes a modular architecture that allows for the integration of various plugins and extensions. However, a vulnerability has been discovered in Moodle that allows remote attackers to read arbitrary files on the server.
Vulnerability Detail
The vulnerability exists in the 'mod/lti/service.php' file in Moodle versions 2.3.11 through 2.7.1. It is caused by the lack of proper input validation and handling of XML external entities (XXE). An attacker can exploit this vulnerability by sending a specially crafted XML request containing an external entity declaration and an entity reference. When the request is processed, the XXE issue allows the attacker to read arbitrary files on the server. This can lead to unauthorized access to sensitive information, such as configuration files, user data, and other confidential data stored on the server.
How To Fix
Fixed versions by release line
The minimum fixed version depends on the release line you run.
-
< 2.3.112.3.11composer require moodle/moodle:2.3.11 -
>= 2.4.0, < 2.4.112.4.11composer require moodle/moodle:2.4.11 -
>= 2.5.0, < 2.5.72.5.7composer require moodle/moodle:2.5.7 -
>= 2.6.0, < 2.6.42.6.4composer require moodle/moodle:2.6.4 -
>= 2.7.0, < 2.7.12.7.1composer require moodle/moodle:2.7.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 the latest version is not immediately feasible, a temporary workaround is to disable the affected functionality or restrict access to the vulnerable file 'mod/lti/service.php'. This can be done by modifying the server configuration or access control rules to block access to the file. However, this is only a temporary solution, and upgrading to the latest version is strongly recommended.
Conclusion
The arbitrary file read vulnerability in Moodle can be exploited by remote attackers to gain unauthorized access to sensitive information. It is crucial to upgrade to the latest version of Moodle (2.3.11, 2.4.11, 2.5.7, 2.6.4, or 2.7.1) to patch the vulnerability and protect against potential attacks. For further support and assistance in vulnerability remediation, you can reach out to DevNack.com.
See every vulnerability recorded for moodle/moodle →
FAQ
Moodle is an open-source learning management system used by educational institutions to create and deliver online courses.
The vulnerability allows remote attackers to read arbitrary files on the server, potentially leading to unauthorized access to sensitive information.
To fix this vulnerability, upgrade to the latest version of Moodle (2.3.11, 2.4.11, 2.5.7, 2.6.4, or 2.7.1).
A temporary workaround is to disable the affected functionality or restrict access to the vulnerable file 'mod/lti/service.php'. However, upgrading to the latest version is strongly recommended.
For more information about this vulnerability, you can refer to the official advisory on the Moodle website or contact the Moodle support team.
Related vulnerabilities
Recent vulnerabilities recorded for moodle/moodle.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.