CVE-2019-14879: Moodle does not revoke role capabilities correctly
5.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.43036%
CWE
Published
5/24/2022
Updated
8/1/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
moodle/moodle | composer | >= 3.7.0, < 3.7.3 | 3.7.3 |
moodle/moodle | composer | >= 3.6.0, < 3.6.7 | 3.6.7 |
moodle/moodle | composer | >= 3.5.0, < 3.5.9 | 3.5.9 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The commit diff shows critical changes in sync_all_cohort_roles() where legacy role assignment cleanup logic was added. This indicates the original implementation lacked proper revocation mechanisms when cohort role assignments were removed. The CWE-273 (Improper Check for Dropped Privileges) maps directly to this missing cleanup logic in the synchronization function.