Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as user with teacher role
-
DeliveryCraft enrol-into-group request with foreign group ID
-
ExploitServer skips group-to-course ownership check
-
ExecutionUser added to unauthorized course group
-
ImpactCross-course group membership integrity violation
Vulnerability Assessment
| Weakness |
CWE
|
| Exploitation Conditions | Requires an authenticated account holding the teacher role in the Moodle instance (PR:L). Exploitation is triggered through the enrol-user-into-course-with-group workflow: the attacker supplies a group identifier that belongs to a course other than the one they are authorized to manage, and the application fails to verify that the group actually belongs to that course. No end-user interaction is needed (UI:N) and no special non-default configuration is required - any standard Moodle deployment with the grouping/enrolment feature is affected. The principal limiting factor is the teacher-privilege prerequisite, which restricts this to insiders or compromised teacher accounts and caps impact at limited group-membership integrity. |
| Impact | This is a genuine but low-severity authorization flaw (CWE-842, Placement into Incorrect Group). The provided CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N = 4.3) is internally consistent with the description: network-reachable, low complexity, but requiring authenticated teacher-level privileges (PR:L) and yielding only a limited integrity impact (I:L) - the attacker can add users to groups in courses they should not administer, but there is no direct confidentiality or availability loss. Exploitation signals are weak: no KEV listing, no EPSS score provided, and no public exploit code referenced (only the MDL tracker, Red Hat mirror, Bugzilla entry, and Moodle forum post). SSVC data is absent. In short, this is a low-real-risk, high-ubiquity-product issue rather than a priority: the ceiling on damage is limited group-membership manipulation by an already-privileged (teacher) insider, patched by upstream Moodle (MDL-88538). Note: because the flaw crosses a course/authorization boundary, a scope change (S:C) could arguably be justified, but the vendor-supplied vector uses S:U; the integrity-only impact keeps overall severity low regardless. |
| Exploit ScenarioDerived | An authenticated user holding teacher privileges in at least one course crafts an enrolment-with-group request that references a group ID belonging to a different course they are not authorized to manage; because the application never validates that the selected group belongs to the target course, the user is added to that foreign group. No public exploit code has been identified at time of analysis, and the low complexity means it is trivially reproducible for any account with the teacher role. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 30, 2026
An authenticated teacher in Moodle can add users to groups that belong to courses they are not authorized to manage, because the enrol-user-into-course-with-group-assignment workflow fails to verify that the supplied group actually belongs to the target course. The flaw is a low-severity authorization weakness (CVSS 4.3, CWE-842, Placement into Incorrect Group) that requires a valid teacher-level account (PR:L) and causes only limited integrity impact to group membership; no public exploit code was identified and there is no evidence of active exploitation at time of analysis. Confidentiality and availability are unaffected, so the practical risk is unauthorized group placement and possible exposure of course-group context rather than data theft or service disruption.
RemediationAI
Apply the upstream Moodle fix for MDL-88538 by upgrading to the first Moodle release that contains it, or by taking the corresponding patched package from your distribution vendor (see https://access.redhat.com/security/cve/CVE-2026-102585 and Bugzilla 2543639 for Red Hat/Fedora builds); the reference set points to an upstream commit/PR rather than a named released version, so the exact patched version is not confirmed in the provided data and should be verified against the Moodle security announcement at https://moodle.org/mod/forum/discuss.php?d=482503 before deployment. If upgrading is not immediately possible, the most direct compensating control is to reduce exposure of the teacher role: remove the group-management and course-enrolment capabilities from roles that do not strictly require them (for example, restrict the ability to create group memberships during enrolment), which eliminates the exploit path at the cost of teachers no longer being able to self-manage groupings and enrolments. Alternatively, use role overrides to limit self-enrolment and group assignment to specific courses, or suspend/downgrade dormant teacher accounts and enforce strong authentication and MFA on teacher-level logins, since a valid teacher account is a hard prerequisite (PR:L) and this flaw is primarily an insider or compromised-account risk. Note that none of these workarounds repair the underlying validation gap, and they carry usability trade-offs for course administration; patching remains the only complete fix.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Moodle models groups as course-scoped containers: each group record is tied to a parent course and is referenced elsewhere by a globally unique group ID. This is an access-control/validation defect in the class CWE-842, Placement of User into Incorrect Group, arising because the enrolment code path that accepts a group assignment parameter trusts the caller-supplied group identifier and never confirms that the group's owning course matches the course the teacher is enrolling into. As a result, a teacher who legitimately holds the group-management and enrolment privileges in course A can pass a group ID that belongs to course B and have the user inserted into that foreign group, bypassing the intended authorization boundary. The CVSS vector AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N confirms the attack is network-reachable, low complexity, requires a low-privileged authenticated account, needs no victim interaction, and is scored as a limited-integrity issue within a single security scope. The upstream correction is tracked under Moodle issue MDL-88538, referenced through the Moodle git commit search and the Moodle forum security discussion, with downstream tracking in Red Hat's CVE page and Bugzilla entry 2543639.
Know when Moodle gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Network-reachable web action with low complexity; requires teacher role so PR:L; only limited integrity impact (unauthorized group membership) with no confidentiality or availability loss.
Primary rating from Vendor (fedora).
CVSS VectorVendor: fedora
DescriptionCVE.org
A flaw was found in Moodle. When enrolling a user into a course while assigning them to a group, the application does not verify whether the selected group actually belongs to that course. An authenticated user with teacher privileges could exploit this flaw to add users to groups within courses they do not have authorization to access.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Affected Products (CPE)CVE.org
Moodle through 2.5.2 allows remote authenticated administrators to execute arbitrary programs by configuring the aspell
A command execution vulnerability exists in the default legacy spellchecker plugin in Moodle 3.10. Rated critical severi
A flaw was found in Moodle. Rated high severity (CVSS 8.1), this vulnerability is remotely exploitable, no authenticatio
In Moodle 2.x and 3.x, SQL injection can occur via user preferences. Rated critical severity (CVSS 9.8), this vulnerabil
The Moodle LMS Jmol plugin version 6.1 and earlier contains a path traversal vulnerability in jsmol.php. The query param
Multiple cross-site scripting (XSS) vulnerabilities in Moodle through 2.2.11, 2.3.x before 2.3.9, 2.4.x before 2.4.6, an
Unrestricted file upload vulnerability in the double extension support in the "image" module in Moodle 3.1.2 allows remo
Unrestricted file upload vulnerability in the "legacy course files" and "file manager" modules in Moodle 3.1.2 allows re
moodle before versions 3.5.2, 3.4.5, 3.3.8, 3.1.14 is vulnerable to an XML import of ddwtos could lead to intentional re
An issue was discovered in Moodle 3.x. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable, low a
Moodle 3.1.2 allows remote attackers to obtain sensitive information via unspecified vectors, related to a "SQL Injectio
Moodle 3.10.3 contains a persistent cross-site scripting vulnerability in the calendar event subtitle field that allows
EUVD-2026-89724
GHSA-h69r-rprv-j965
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB