Rapid7 Vulnerability & Exploit Database

Moodle Remote Code Execution (CVE-2024-43425)

Back to Search

Moodle Remote Code Execution (CVE-2024-43425)

Disclosed
08/27/2024
Created
12/06/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.

Author(s)

  • Michael Heinzl
  • RedTeam Pentesting GmbH

Platform

Linux

Architectures

cmd

Development

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

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;