Description
The forum_print_latest_discussions function in mod/forum/lib.php in Moodle through 2.4.11, 2.5.x before 2.5.8, 2.6.x before 2.6.5, and 2.7.x before 2.7.2 allows remote authenticated users to bypass the individual answer-posting requirement without the mod/forum:viewqandawithoutposting capability, and discover an author's username, by leveraging the student role and visiting a Q&A forum.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | moodle/moodle | < 2.5.8 | 2.5.8 | GHSA-p5j7-26wj-423j |
| Packagist | moodle/moodle | >= 2.6.0, < 2.6.5 | 2.6.5 | GHSA-p5j7-26wj-423j |
| Packagist | moodle/moodle | >= 2.7.0, < 2.7.2 | 2.7.2 | GHSA-p5j7-26wj-423j |