Moodle: group validation missing when enrolling user to course (moodle)

CVE-2026-102585
MEDIUM 4.3

At a glance

Source
NVD
EPSS
EPSS 0.20 % Β· percentile 10 ()
State
PUBLISHED
Published
Updated
Assigner
fedora
NVD status
Analyzed

Description

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.

Weaknesses (CWE)

  • CWE-842 β€” Placement of User into Incorrect Group

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 4.3CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:Nfedora
CVSS 3.1MEDIUM 4.3CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:NNVD Β· patrick@puiterwijk.org (Secondary)

European references

Affected configurations (NVD CPE)

Affected products

ProductVersions
moodleaffected 5.2.0 < 5.2.2 ; affected 5.1.0 < 5.1.6

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST β€” attribution requested
ENISA EUVDENISA β€” reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain β€” this product uses data from the NVD API but is not endorsed or certified by the NVD