Every CVE Search/ Get API key

CVE-2018-16854

Moodle Login CSRF vulnerability in login form

6.5 MediumPublic exploitFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
Low
Availability
Low

Exploit likelihood

2.33%Down 3.0 points since Apr 14, 2021
90%50%10%1%

What each source reports

CVE List Score used 6.5

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.

Record
CVE-2018-16854
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Weakness
CWE-352
Updated
2026-11-02
EUVDEUVD-2022-5805 6.5

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.

Record
EUVD-2022-5805
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Updated
2026-11-03
GitHub AdvisoriesGHSA-xj5f-qv37-r9jc 8.8

Moodle Login CSRF vulnerability in login form

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.

Record
GHSA-xj5f-qv37-r9jc
CVSS 3.0
8.8 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-352
Updated
2026-11-02
NVD 6.5

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.

Record
CVE-2018-16854
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
CVSS 3.0
8.8 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.0
6.8 MediumAV:N/AC:M/Au:N/C:P/I:P/A:P
Weakness
CWE-352
Updated
2026-11-02
OSV 8.8

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.

Record
CVE-2018-16854
CVSS 3.0
8.8 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVGHSA-xj5f-qv37-r9jc 8.8

Moodle Login CSRF vulnerability in login form

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.

Record
GHSA-xj5f-qv37-r9jc
CVSS 3.0
8.8 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-352
Updated
2026-11-02
OSVUBUNTU-CVE-2018-16854 6.5

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.

Record
UBUNTU-CVE-2018-16854
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
CVSS 3.0
8.8 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
moodle/moodle
Packagist
3.1 up to 3.1.15
3.1.15
moodle/moodle
Packagist
3.3 up to 3.3.9
3.3.9
moodle/moodle
Packagist
3.4 up to 3.4.6
3.4.6
moodle/moodle
Packagist
3.5 up to 3.5.3
3.5.3
moodle/moodle
Packagist
3.1 up to 3.1.15, plus listed versions
v3.1.0v3.1.0-betav3.1.0-rc1v3.1.0-rc2v3.1.1
Show 13 moreShow less
v3.1.10v3.1.11v3.1.12v3.1.13v3.1.14v3.1.2v3.1.3v3.1.4v3.1.5v3.1.6v3.1.7v3.1.8v3.1.9
3.1.15
moodle/moodle
Packagist
3.3 up to 3.3.9, plus listed versions
v3.3.0v3.3.0-betav3.3.0-rc1v3.3.0-rc2v3.3.0-rc3
Show 8 moreShow less
v3.3.1v3.3.2v3.3.3v3.3.4v3.3.5v3.3.6v3.3.7v3.3.8
3.3.9
moodle/moodle
Packagist
3.4 up to 3.4.6, plus listed versions
v3.4.0v3.4.0-betav3.4.0-rc1v3.4.0-rc2v3.4.0-rc3
Show 5 moreShow less
v3.4.1v3.4.2v3.4.3v3.4.4v3.4.5
3.4.6
moodle/moodle
Packagist
3.5 up to 3.5.3, plus listed versions
v3.5.0v3.5.0-betav3.5.0-rc1v3.5.1v3.5.2
3.5.3
moodle
Ubuntu:Pro:16.04:LTS
All versions, plus listed versions
2.7.9+dfsg-12.7.10+dfsg-12.7.11+dfsg-12.7.11+dfsg-22.7.12+dfsg-13.0.3+dfsg-0ubuntu13.0.3+dfsg-0ubuntu1+esm1
None known
moodle
Ubuntu:Pro:18.04:LTS
All versions, plus listed versions
3.0.3+dfsg-0ubuntu13.0.3+dfsg-0ubuntu1+esm1
None known

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
PoC in GitHubdanielthatcher/moodle-login-csrf2019-04-04

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV, PoC in GitHub

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2018-16854 is a medium vulnerability (CVSS 6.5) in [unknown] Moodle, published November 26, 2018. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 2.33%, the 83rd percentile. Fixed in moodle/moodle 3.1.15.

References

Show 4 moreShow less
MoveEnter Open