CVE-2023-5539 Moodle: authenticated remote code execution risk in lesson

Medium 4.7 Published Updated

Authenticated attackers can execute arbitrary code in the Moodle Lesson activity, posing a significant risk to system integrity.

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

What is CVE-2023-5539?

CVE-2023-5539 is a medium-severity code injection vulnerability in Fedoraproject Extra Packages for Enterprise Linux, published on 9 Nov 2023. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

A remote code execution risk was identified in the Lesson activity. By default this was only available to teachers and managers.

Weakness: CWE-94

Which versions are affected by CVE-2023-5539?

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

PackageAffectedFixed in
moodle/moodle PackagistAll versions4.3.0-rc2
moodle/moodle PackagistAll versions4.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-5539?

Upgrade moodle/moodle to 4.3.0-rc2 or later.

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

Is CVE-2023-5539 being exploited?

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

All Fedoraproject Extra Packages for Enterprise Linux vulnerabilities

Sources

Also known as BIT-moodle-2023-5539, GHSA-3xxm-3g3c-w579, UBUNTU-CVE-2023-5539.

Is CVE-2023-5539 in your software?

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

Check your SBOMs for free