CVE-2024-43435
Medium · 5.3Moodle has insufficient capability checks
CVSS
5.3
EPSS
0.3%
Published
Nov 11, 2024
CISA due date
—
Cloudanix analysis
A permission check was missing so people who could restore course materials were also able to change the shared dictionary used by the entire site.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Privilege Gain
- Component
- Application
- Class
- Authorization Bypass
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Insufficient capability checks allow a user with course-level glossary restore rights to restore a glossary directly into the global site glossary.
Why it matters to the business
Attackers can pollute or manipulate the shared site glossary used by all courses, leading to incorrect or malicious content appearing across the learning platform and requiring manual cleanup.
How an attack unfolds
An attacker obtains or is granted the ability to restore glossaries inside a course, then uses the restore workflow to target the global site glossary instead of a course-level one, bypassing the intended authorization boundary.
How to fix it
Upgrade Moodle to the commit aea9770cfc7d003a737f4899489d1e3982efe9ac or later; verify the restored glossary capability checks are enforced before allowing course restores.
How to confirm the fix worked
After upgrade, attempt to restore a glossary backup from a course context and confirm that only course-level glossaries are offered as restore targets and that global site glossary selection is denied.
Typical attack path
- Obtain or receive course-level glossary restore capability
- Prepare a glossary backup file containing desired entries
- Initiate restore of the backup while selecting the global site glossary as the target destination
- Confirm successful restore of entries into the site-wide glossary
How to detect it
Search Moodle restore logs and event logs for glossary restore operations where the target context is the site glossary (contextlevel 10) initiated by users whose primary role is course-level.
What your security team should do
- Apply the fixed commit aea9770cfc7d003a737f4899489d1e3982efe9ac immediately on all Moodle instances
- Audit existing course roles and remove glossary restore capability from any roles that do not require it
- Review recent glossary restore activity in the Moodle logs for entries restored to the site glossary
The record
A flaw was found in moodle. Insufficient capability checks make it possible for users with access to restore glossaries in courses to restore them into the global site glossary.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Packagist | moodle/moodle | 0 | 4.1.12 |
| Packagist | moodle/moodle | 4.2.0 | 4.2.9 |
| Packagist | moodle/moodle | 4.3.0 | 4.3.6 |
| Packagist | moodle/moodle | 4.4.0 | 4.4.2 |
| Bitnami | moodle | 0 | 4.1.12 |
| Ubuntu:16.04:LTS | moodle | 0 | No fix |
| Ubuntu:18.04:LTS | moodle | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | moodle | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | moodle | 0 | No fix |
| packagist | moodle/moodle | 4.2.0 | 4.2.9 |
| packagist | moodle/moodle | 4.3.0 | 4.3.6 |
| packagist | moodle/moodle | 4.4.0 | 4.4.2 |
Related vulnerabilities
- GHSA-ggxq-2mg9-8966 Moodle has a Remote Code Execution risk via file restore Also affects moodle/moodle
- GHSA-cg8j-5cr2-568q Moodle TeX formula editor is vulnerable to DoS through lack of execution time limits Also affects moodle/moodle
- CVE-2026-26047 A denial-of-service vulnerability was identified in Moodle’s TeX formula editor. Also affects moodle/moodle
- CVE-2026-26045 A flaw was identified in Moodle’s backup restore functionality where specially crafted… Also affects moodle/moodle
- GHSA-5cx4-w4fh-fr57 Moodle Affected by Improper Restriction of Excessive Authentication Attempts Also affects moodle/moodle
- GHSA-8jrv-wx83-w3xj Moodle Inserts Sensitive Information Into Sent Data Also affects moodle/moodle
- GHSA-hcm6-q6pc-xfhm Moodle has an authorization logic flaw Also affects moodle/moodle
- GHSA-qv78-6gpp-hm68 Moodle Open Redirect vulnerability Also affects moodle/moodle