CVE-2023-5550 Moodle: rce due to lfi risk in some misconfigured shared hosting environments

Medium 6.5 Published Updated

Attackers with web server access can achieve remote code execution via local file inclusion in misconfigured shared hosting environments.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-5550?

CVE-2023-5550 is a medium-severity code injection vulnerability in Fedoraproject Extra Packages for Enterprise Linux, published on 9 Nov 2023. An attacker can exploit it over the internet without logging in, 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 who also has direct access to the web server outside of the Moodle webroot could utilise a local file include to achieve remote code execution.

Weakness: CWE-94

Which versions are affected by CVE-2023-5550?

13 open source packages ship an affected version, including moodle/moodle and moodle. It affects 3 products.

PackageAffectedFixed in
moodle/moodle PackagistAll versions3.9.24
moodle/moodle PackagistAll versions3.9.24
moodle/moodle PackagistFrom 3.10.03.11.17
moodle/moodle PackagistFrom 3.10.03.11.17
moodle/moodle PackagistFrom 4.0.04.0.11
moodle/moodle PackagistFrom 4.0.04.0.11
7 more packages
moodle/moodle PackagistFrom 4.1.04.1.6
moodle/moodle PackagistFrom 4.1.04.1.6
moodle/moodle PackagistFrom 4.2.04.2.3
moodle/moodle PackagistFrom 4.2.04.2.3
moodle/moodle PackagistFrom 4.3.0-beta4.3.0-rc2
moodle/moodle PackagistFrom 4.3.0-beta4.3.0-rc2
moodle BitnamiAll versions3.9.24, 3.11.17, 4.0.11, 4.1.6, 4.2.3

Products include Fedoraproject Extra Packages for Enterprise Linux, Fedoraproject Fedora, Moodle Moodle.

How do I fix CVE-2023-5550?

Upgrade moodle/moodle to a fixed version for your release line: 3.9.24, 3.11.17, 4.0.11 or 4.1.6.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2023-5550 being exploited?

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

All Fedoraproject Extra Packages for Enterprise Linux vulnerabilities

Sources

Also known as BIT-moodle-2023-5550, GHSA-5cvx-cwpx-9rjh, UBUNTU-CVE-2023-5550.

Is CVE-2023-5550 in your software?

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

Check your SBOMs for free