CVE-2023-30943 Moodle: tinymce loaders susceptible to arbitrary folder creation
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.
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.
| Package | Affected | Fixed in |
|---|---|---|
moodle/moodle Packagist | All versions | 4.2.0-rc2 |
moodle/moodle Packagist | All versions | 4.2.0-rc2 |
moodle Bitnami | From 4.1.0 | 4.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.
Other vulnerabilities in Fedoraproject Extra Packages for Enterprise Linux
- CVE-2023-34152 Command injection in ImageMagick
- CVE-2022-4170 Code injection in rxvt-unicode
- CVE-2022-40315 Moodle Minor SQL injection risk in admin user browsing
- CVE-2022-45152 Moodle blind Server-Side Request Forgery (SSRF) vulnerability in LTI provider library
- CVE-2022-24882 Server side NTLM does not properly check parameters in FreeRDP
All Fedoraproject Extra Packages for Enterprise Linux vulnerabilities
Sources
Also known as BIT-moodle-2023-30943, GHSA-22gj-8qj2-fj46, UBUNTU-CVE-2023-30943.