CVE-2023-5540
PHP vulnerability analysis and mitigation

Overview

A remote code execution vulnerability (CVE-2023-5540) was identified in the IMSCP activity module of Moodle. The vulnerability was discovered and disclosed in October 2023, affecting Moodle versions 4.2 to 4.2.2, 4.1 to 4.1.5, 4.0 to 4.0.10, 3.11 to 3.11.16, 3.9 to 3.9.23, and earlier unsupported versions. By default, this vulnerability was only accessible to users with teacher and manager roles (Moodle Advisory).

Technical details

The vulnerability is classified as CWE-94 (Improper Control of Generation of Code - 'Code Injection'). According to the National Vulnerability Database, it received a CVSS v3.1 base score of 8.8 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, indicating network accessibility, low attack complexity, and high impact on confidentiality, integrity, and availability (NVD).

Impact

The vulnerability could allow authenticated users with teacher or manager roles to execute arbitrary code remotely on the affected Moodle installation. This poses a significant security risk as it could lead to complete system compromise with high impacts on confidentiality, integrity, and availability of the system (NVD).

Mitigation and workarounds

The vulnerability has been fixed in Moodle versions 4.2.3, 4.1.6, 4.0.11, 3.11.17, and 3.9.24. Organizations running affected versions should upgrade to the patched versions immediately (Moodle Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management