module

Moodle Remote Code Execution (CVE-2024-43425)

Disclosed
Aug 27, 2024
Created
Dec 6, 2024

Description

This module exploits a command injection vulnerability in Moodle (CVE-2024-43425) to obtain remote code execution.
Affected versions include 4.4 to 4.4.1, 4.3 to 4.3.5, 4.2 to 4.2.8, 4.1 to 4.1.11, and earlier unsupported versions.

Authors

Michael Heinzl
RedTeam Pentesting GmbH

Platform

Linux

Architectures

cmd

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':


msf > use exploit/linux/http/moodle_rce
msf exploit(moodle_rce) > show targets
...targets...
msf exploit(moodle_rce) > set TARGET < target-id >
msf exploit(moodle_rce) > show options
...show and set options...
msf exploit(moodle_rce) > exploit

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.