CVE-2024-43433
Medium · 5.3Moodle's user/power level management inconsistent with suspended users
CVSS
5.3
EPSS
0.3%
Published
Nov 11, 2024
CISA due date
—
Cloudanix analysis
A bug in Moodle's link to Matrix chat rooms allows suspended users to keep accessing those rooms when they should lose access.
- 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
The vulnerability allows suspended Moodle users to retain or incorrectly gain Matrix room membership and elevated power levels due to improper synchronization of user suspension status with Matrix room permissions.
Why it matters to the business
Suspended users may continue to access sensitive communication channels in integrated Matrix rooms, potentially leading to unauthorized data access or disruption in educational or organizational environments using Moodle.
How an attack unfolds
An attacker identifies a suspended Moodle user account that still has active Matrix integration. By attempting to interact with Matrix rooms, the attacker exploits the failure to revoke permissions, maintaining access despite suspension.
How to fix it
Upgrade moodle/moodle (GIT) to the fixed commit cc2edf3b8ccaa116e19ea2bb5daec7ed8adb3acd to ensure proper revocation of Matrix room membership and power levels for suspended users.
How to confirm the fix worked
Confirm the applied commit or version includes cc2edf3b8ccaa116e19ea2bb5daec7ed8adb3acd. Test by suspending a user and verifying immediate removal from all Matrix rooms with correct power level revocation.
Typical attack path
- Identify suspended Moodle user with active Matrix integration
- Retain or reuse Matrix session credentials without revocation
- Access or modify rooms using incorrect power levels
- Perform unauthorized actions while evading standard suspension controls
How to detect it
Examine Moodle logs and Matrix integration events for user suspension records that do not trigger corresponding room membership revocations or power level changes.
What your security team should do
- Apply the fixed commit to all Moodle instances with Matrix integration
- Audit existing Matrix rooms for any suspended users retaining membership
- Review integration configuration to ensure status sync is enabled
- Monitor user suspension events and corresponding Matrix permission changes
The record
A flaw was found in moodle. Matrix room membership and power levels are incorrectly applied and revoked for suspended Moodle users.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Packagist | moodle/moodle | 4.3.0 | 4.3.6 |
| Packagist | moodle/moodle | 4.4.0 | 4.4.2 |
| Bitnami | moodle | 4.3.0 | 4.3.6 |
| 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.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