CVE-2023-30943 Moodle: tinymce loaders susceptible to arbitrary folder creation

Medium 6.5 Published Updated

Remote attackers can create arbitrary folders on the server via crafted HTTP requests in TinyMCE loaders, requiring patching of Moodle installations.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-30943?

CVE-2023-30943 is a medium-severity path traversal vulnerability in Fedoraproject Extra Packages for Enterprise Linux, published on 2 May 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

The vulnerability was found Moodle which exists because the application allows a user to control path of the older to create in TinyMCE loaders. A remote user can send a specially crafted HTTP request and create arbitrary folders on the system.

Weakness: CWE-610, CWE-73

Which versions are affected by CVE-2023-30943?

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

PackageAffectedFixed in
moodle/moodle PackagistAll versions4.2.0-rc2
moodle/moodle PackagistAll versions4.2.0-rc2
moodle BitnamiFrom 4.1.04.1.3

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

How do I fix CVE-2023-30943?

Upgrade moodle/moodle to 4.2.0-rc2 or later.

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

Is CVE-2023-30943 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-30943 exists.

Public exploit code: 1 Nuclei template and 3 proofs of concept on GitHub.

All Fedoraproject Extra Packages for Enterprise Linux vulnerabilities

Sources

Also known as BIT-moodle-2023-30943, GHSA-22gj-8qj2-fj46, UBUNTU-CVE-2023-30943.

Is CVE-2023-30943 in your software?

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

Check your SBOMs for free