CVE-2024-25980
Medium · 4.3CVSS
4.3
EPSS
0.5%
Published
Feb 19, 2024
CISA due date
—
Cloudanix analysis
A Moodle reporting feature meant to keep student data separate between course groups was not working correctly, so some teachers could accidentally see information about students in other groups.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Application
- Class
- Authorization Bypass
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The H5P attempts report in Separate Groups mode fails to enforce group membership checks, exposing user data from other groups to non-editing teachers who should not see it.
Why it matters to the business
Organizations using Moodle face unintended exposure of learner activity data across course groups, increasing privacy compliance risks and eroding trust in group-based access controls.
How an attack unfolds
An authenticated user with the non-editing teacher role navigates to the H5P attempts report for a course configured with Separate Groups; the missing authorization check returns records belonging to other groups, allowing the attacker to view learner names and attempt details they are not permitted to see.
How to fix it
Upgrade Moodle to a version containing commit 8a38a37f1ff5075c6f46d726c1457172c2fccac3 or later; verify that group restrictions are enforced in the H5P attempts report after deployment.
How to confirm the fix worked
After patching, create test courses with Separate Groups, assign non-editing teachers to distinct groups, populate H5P activities, and confirm the attempts report displays only same-group users.
Typical attack path
- Obtain non-editing teacher role in a Moodle course with Separate Groups enabled
- Locate and open the H5P attempts report interface
- Observe that the report includes entries for users outside the attacker's assigned group
- Export or record the unauthorized learner data
How to detect it
Search Moodle access and report logs for non-editing teacher accounts querying H5P attempts reports in courses configured with Separate Groups; look for repeated or broad data exports that cross expected group boundaries.
What your security team should do
- Apply the fix from commit 8a38a37f1ff5075c6f46d726c1457172c2fccac3 immediately on all Moodle instances
- Audit non-editing teacher permissions in courses using Separate Groups
- Review H5P activity reports for any prior unauthorized data access
- Monitor for future Moodle security releases and establish a rapid patching process
The record
Separate Groups mode restrictions were not honored in the H5P attempts report, which would display users from other groups. By default this only provided additional access to non-editing teachers.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Packagist | moodle/moodle | 0 | 4.1.9 |
| Packagist | moodle/moodle | 4.2.0 | 4.2.6 |
| Packagist | moodle/moodle | 4.3.0 | 4.3.3 |
| Bitnami | moodle | 0 | 4.1.9 |
| Bitnami | moodle | 4.3.0 | 4.3.3 |
| 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 | No fix |
| packagist | moodle/moodle | 4.2.0 | 4.2.6 |
| packagist | moodle/moodle | 4.3.0 | No fix |
| packagist | moodle/moodle | 4.3.0 | 4.3.3 |
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