CVE-2024-34002 moodle: authenticated LFI risk in some misconfigured shared hosting environments via modified mod_feedback backup

Medium 6.5 Published Updated

Authenticated attackers can read arbitrary files via local file inclusion in misconfigured shared hosting environments using modified feedback backups.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-34002?

CVE-2024-34002 is a medium-severity path traversal vulnerability in Moodle Moodle, published on 31 May 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

In a shared hosting environment that has been misconfigured to allow access to other users' content, a Moodle user with both access to restore feedback modules and direct access to the web server outside of the Moodle webroot could execute a local file include.

Weakness: CWE-200

Which versions are affected by CVE-2024-34002?

7 open source packages ship an affected version, including moodle/moodle and moodle. It affects 1 product.

PackageAffectedFixed in
moodle/moodle PackagistAll versions4.1.10
moodle/moodle PackagistAll versions4.1.10
moodle/moodle PackagistFrom 4.2.04.2.7
moodle/moodle PackagistFrom 4.2.04.2.7
moodle/moodle PackagistFrom 4.3.04.3.4
moodle/moodle PackagistFrom 4.3.04.3.4
1 more packages
moodle BitnamiAll versions4.1.10, 4.2.7, 4.3.4

Products include Moodle Moodle.

How do I fix CVE-2024-34002?

Upgrade moodle/moodle to a fixed version for your release line: 4.1.10, 4.2.7 or 4.3.4.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-34002 being exploited?

There is no known exploitation of CVE-2024-34002 in the wild and no public exploit code.

All Moodle Moodle vulnerabilities

Sources

Also known as BIT-moodle-2024-34002, GHSA-mm9p-xwfm-3fqf, UBUNTU-CVE-2024-34002.

Is CVE-2024-34002 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free