Description
lib/ajax/getnavbranch.php in Moodle through 2.6.11, 2.7.x before 2.7.13, 2.8.x before 2.8.11, 2.9.x before 2.9.5, and 3.0.x before 3.0.3, when the forcelogin feature is enabled, allows remote attackers to obtain sensitive category-detail information from the navigation branch by leveraging the guest role for an Ajax request.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | moodle | 3.0.3+dfsg-0ubuntu1 | — |
| Ubuntu 16.04 LTS | moodle | 3.0.3+dfsg-0ubuntu1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | moodle/moodle | < 2.7.13 | 2.7.13 | GHSA-m882-j7gq-v9p7 |
| Packagist | moodle/moodle | >= 2.8.0, < 2.8.11 | 2.8.11 | GHSA-m882-j7gq-v9p7 |
| Packagist | moodle/moodle | >= 2.9.0, < 2.9.5 | 2.9.5 | GHSA-m882-j7gq-v9p7 |
| Packagist | moodle/moodle | >= 3.0.0, < 3.0.3 | 3.0.3 | GHSA-m882-j7gq-v9p7 |