Moodle incorrect access control
Impact
A vulnerability was found in Moodle where users with "Log in as" capability in a course context (typically, course managers) may gain access to some site administration capabilities by "logging in as" a System manager. This affects 3.9 to 3.9.1, 3.8 to 3.8.4, 3.7 to 3.7.7, 3.5 to 3.5.13 and earlier unsupported versions. This is fixed in 3.9.2, 3.8.5, 3.7.8 and 3.5.14.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| From 3.9 before 3.9.2Ecosystem versions | 3.9.2 |
| From 3.8 before 3.8.5Ecosystem versions | 3.8.5 |
| From 3.7 before 3.7.8Ecosystem versions | 3.7.8 |
| From 3.5 before 3.5.14Ecosystem versions | 3.5.14 |
Version evidence: OSV · GHSA-f5r8-7h4f-jr9x
View original version evidence (40 explicit versions)
Original source description
A vulnerability was found in Moodle where users with "Log in as" capability in a course context (typically, course managers) may gain access to some site administration capabilities by "logging in as" a System manager. This affects 3.9 to 3.9.1, 3.8 to 3.8.4, 3.7 to 3.7.7, 3.5 to 3.5.13 and earlier unsupported versions. This is fixed in 3.9.2, 3.8.5, 3.7.8 and 3.5.14.