CVE-2024-25981: Improper Access Control in moodle
5.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.36638%
CWE
Published
2/19/2024
Updated
1/23/2025
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| moodle/moodle | composer | >= 4.3.0, < 4.3.3 | 4.3.3 |
| moodle/moodle | composer | >= 4.2.0, < 4.2.6 | 4.2.6 |
| moodle/moodle | composer | < 4.1.9 | 4.1.9 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from three key issues: 1) The user search functions (core_enrol_external::search_users and course_enrolment_manager::search_users) used course-level group context instead of activity-specific context, 2) The discussion vault didn't filter by user's allowed groups, and 3) The export form didn't propagate activity context properly. The patch adds contextID parameters, switches to activity-specific group mode checks, and implements proper group filtering in discussion retrieval. These functions were directly modified in the security fix commit to add group mode enforcement at the activity level.