CVE-2020-25629: Moodle incorrect access control
8.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.62461%
CWE
Published
5/24/2022
Updated
8/23/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| moodle/moodle | composer | >= 3.9, <= 3.9.1 | 3.9.2 |
| moodle/moodle | composer | >= 3.8, <= 3.8.4 | 3.8.5 |
| moodle/moodle | composer | >= 3.7, <= 3.7.7 | 3.7.8 |
| moodle/moodle | composer | >= 3.5, <= 3.5.13 | 3.5.14 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper access control in the 'loginas' functionality. Moodle's user impersonation system allowed users with course-level 'loginas' capability to switch to site administrators because the function did not enforce context boundaries between course roles and system-wide roles. The fix (referenced in MDL-68974) likely added context hierarchy validation to prevent privilege escalation. The core session manager's loginas function is the logical point where this authorization check would occur, making it the most probable vulnerable component.