CVE-2022-40316: Moodle No groups filtering in H5P activity attempts report
4.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.42018%
CWE
Published
10/1/2022
Updated
4/23/2024
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:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
moodle/moodle | composer | >= 3.9, < 3.9.17 | 3.9.17 |
moodle/moodle | composer | >= 3.11, < 3.11.10 | 3.11.10 |
moodle/moodle | composer | >= 4.0, < 4.0.4 | 4.0.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from missing group filtering in H5P activity reports. Moodle's standard pattern for group-restricted data involves: 1) Checking group mode 2) Adding group joins/conditions in SQL
3) Using groups API
. The affected functions likely failed to implement these steps when querying attempt data. The high confidence comes from: 1) Problem matching Moodle's group handling pattern 2) References to MDL-71662
/MDL-72012
tracking reports 3) Workaround involving capability removal 4) CWE-668
/862
alignment with missing access controls in data retrieval functions.