VYPR
Moderate severityNVD Advisory· Published Sep 30, 2022· Updated May 20, 2025

CVE-2022-40316

CVE-2022-40316

Description

The H5P activity attempts report in Moodle fails to filter by groups, allowing non-editing teachers to view attempts from groups they should not access in separate groups mode.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

The H5P activity attempts report in Moodle fails to filter by groups, allowing non-editing teachers to view attempts from groups they should not access in separate groups mode.

Vulnerability

Description The H5P activity attempts report in Moodle does not filter data by groups when the course is in separate groups mode. This allows non-editing teachers to view attempts and user information from groups they are not supposed to access [1]. The issue affects Moodle versions 4.0 to 4.0.3, 3.11 to 3.11.9, 3.9 to 3.9.16, and earlier unsupported versions [2].

Exploitation

An attacker with the role of non-editing teacher can access the H5P activity attempts report and view details of attempts made by users in other groups. No special privileges beyond the non-editing teacher role are required; the vulnerability exists due to missing group filtering logic in the report generation [1].

Impact

This vulnerability leads to unauthorized disclosure of sensitive information, specifically the attempts and user data of students in groups that the teacher should not have access to. This violates the privacy and access controls intended by separate groups mode [1].

Mitigation

Moodle has fixed the issue in versions 4.0.4, 3.11.10, and 3.9.17 [2]. As a workaround, administrators can revoke the mod/h5pactivity:reviewattempts capability from non-editing teachers until the patch is applied [2].

AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
moodle/moodlePackagist
>= 3.9, < 3.9.173.9.17
moodle/moodlePackagist
>= 3.11, < 3.11.103.11.10
moodle/moodlePackagist
>= 4.0, < 4.0.44.0.4

Affected products

3

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

4

News mentions

0

No linked articles in our index yet.