CVE-2018-16854Moodle
High 8.8 No auth needed
Follow: this CVE · Moodle · Moodle We alert you by email or Slack (account required).
- Priority
- 68
- CVSS 3.0
- 8.8
- EPSS
- 2.3% probability of exploitation in 30 days · percentile 84
- Auth required
- No
- Published
- Nov 26, 2018
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-352
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
A flaw was found in moodle versions 3.5 to 3.5.2, 3.4 to 3.4.5, 3.3 to 3.3.8, 3.1 to 3.1.14 and earlier. The login form is not protected by a token to prevent login cross-site request forgery. Fixed versions include 3.6, 3.5.3, 3.4.6, 3.3.9 and 3.1.15.
What to do
- Apply the vendor's security update for Moodle.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | moodle/moodle |
≥ 3.1 < 3.1.15 |
3.1.15 |
composer require "moodle/moodle:^3.1.15" |
| Packagist | moodle/moodle |
≥ 3.3 < 3.3.9 |
3.3.9 |
composer require "moodle/moodle:^3.3.9" |
| Packagist | moodle/moodle |
≥ 3.4 < 3.4.6 |
3.4.6 |
composer require "moodle/moodle:^3.4.6" |
| Packagist | moodle/moodle |
≥ 3.5 < 3.5.3 |
3.5.3 |
composer require "moodle/moodle:^3.5.3" |
Per OSV / GitHub Advisories (GHSA-xj5f-qv37-r9jc). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| moodle | moodle | ≤ 3.0.10 |
| moodle | moodle | ≥ 3.1.0 < 3.1.15 |
| moodle | moodle | ≥ 3.3.0 < 3.3.9 |
| moodle | moodle | ≥ 3.4.0 < 3.4.6 |
| moodle | moodle | ≥ 3.5.0 < 3.5.3 |
Official sources
References
Links published by the sources. Open them with care.
- git.moodle.org Patch Vendor Advisory
- www.securityfocus.com Third Party Advisory VDB Entry
- www.securitytracker.com Third Party Advisory VDB Entry
- bugzilla.redhat.com Issue Tracking Patch Third Party Advisory
- moodle.org Vendor Advisory