CVE-2016-2151: Moodle allows attackers to discover student e-mail addresses
4.3
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.56667%
CWE
Published
5/13/2022
Updated
1/26/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| moodle/moodle | composer | < 2.7.13 | 2.7.13 |
| moodle/moodle | composer | >= 2.8.0, < 2.8.11 | 2.8.11 |
| moodle/moodle | composer | >= 2.9.0, < 2.9.5 | 2.9.5 |
| moodle/moodle | composer | >= 3.0.0, < 3.0.3 | 3.0.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from an incorrect capability check in user/index.php. The commit diff shows the removal of 'has_capability('moodle/course:viewhiddenuserfields', $context)' from the conditional that controls email display. This check erroneously allowed users with the 'teacher' role (who had this capability) to view student emails. The patch removed this check, confirming it was the root cause of the authorization flaw.