CVE-2024-25981
Medium · 4.3CVSS
4.3
EPSS
0.6%
Published
Feb 19, 2024
CISA due date
—
Cloudanix analysis
A teacher who was only supposed to see their own class group could accidentally get discussion posts from every other group when exporting a forum.
- 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
Authorization bypass in forum export functionality that ignores Separate Groups mode restrictions, exposing forum data across all groups to non-editing teachers.
Why it matters to the business
Limited unauthorized disclosure of group-specific discussion content that may contain sensitive student or participant information; low operational urgency given stable low exploit probability and absence from known exploited lists.
How an attack unfolds
An authenticated non-editing teacher enrolled in a course configured with Separate Groups mode navigates to the forum export feature and triggers an export; the missing group filter returns posts and participant data from every group rather than only the attacker's assigned groups.
How to fix it
Upgrade Moodle to a version containing commit 8a38a37f1ff5075c6f46d726c1457172c2fccac3 or later; verify the fix is present by confirming the updated export logic respects group membership before re-enabling exports.
How to confirm the fix worked
After upgrade, create test courses with Separate Groups, populate multiple groups with distinct posts, export as non-editing teacher, and confirm only the assigned group's data appears in the output.
Typical attack path
- Locate a Moodle course using Separate Groups mode with forum activity
- Log in with non-editing teacher privileges
- Access the forum export option without additional parameters
- Receive exported data containing posts from all groups
How to detect it
Search Moodle web server and database logs for forum export requests initiated by users holding non-editing teacher roles in courses with group mode enabled; correlate with timestamps of large data exports or downloads of forum content.
What your security team should do
- Apply the fixed commit or corresponding release to all Moodle instances within standard change windows
- Review audit logs for any forum export events performed by non-editing teachers prior to the fix
- Temporarily disable forum exports for non-editing teachers until patched if risk tolerance is low
The record
Separate Groups mode restrictions were not honored when performing a forum export, which would export forum data for all 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