{"id":"CVE-2018-16854","published":"2018-11-26T17:00:00Z","modified":"2024-08-05T10:32:54Z","title":"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","vendor":null,"product":"moodle","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02326,"percentile":0.83914,"provenance":"source"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16854","tags":["x_refsource_CONFIRM"]},{"url":"http://www.securitytracker.com/id/1042154","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-63183","tags":["x_refsource_CONFIRM"]},{"url":"http://www.securityfocus.com/bid/106017","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=378731","tags":["x_refsource_CONFIRM"]}],"priority":{"score":26.3,"factors":[{"name":"EPSS percentile","points":16.78},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.55}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2019-04-04","earliestUrl":"https://github.com/danielthatcher/moodle-login-csrf","repos":[{"name":"danielthatcher/moodle-login-csrf","url":"https://github.com/danielthatcher/moodle-login-csrf","stars":7,"created":"2019-04-04"}]},"first":{"date":"2019-04-04","source":"PoC-in-GitHub","url":"https://github.com/danielthatcher/moodle-login-csrf"},"provenance":"source"},"affectedVersions":[{"vendor":"[UNKNOWN]","product":"moodle","versions":["3.6","3.5.3","3.4.6","3.3.9","3.1.15"]}],"affected":[{"ecosystem":"Packagist","package":"moodle/moodle","vulnerableRanges":[">=3.1, <3.1.15",">=3.3, <3.3.9",">=3.4, <3.4.6",">=3.5, <3.5.3"],"patched":["3.1.15","3.3.9","3.4.6","3.5.3"],"from":["GHSA-xj5f-qv37-r9jc"],"provenance":"source"}],"summary":{"text":"The flaw is in Moodle's login form, which is not protected by a token against login cross-site request forgery, affecting 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. An attacker can exploit it over the network without authentication or privileges, but it requires a victim user to interact with a crafted page, such as visiting a malicious site while the attack is staged.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T05:38:41Z"},"euvd":{"id":"EUVD-2022-5805","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2018-10891","published":"2018-07-10","fixed":"3.5.1","kev":false},{"cve":"CVE-2018-14630","published":"2018-09-17","fixed":"3.5.2","kev":false,"link":{"from":"CVE-2018-14630","to":"CVE-2018-16854","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:moodle/moodle","fromFixed":"3.1.14","toFixed":"3.1.15","daysApart":70}]}},{"cve":"CVE-2018-14631","published":"2018-09-17","fixed":"3.5.2","kev":false,"link":{"from":"CVE-2018-14631","to":"CVE-2018-16854","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:moodle/moodle","fromFixed":"3.3.8","toFixed":"3.3.9","daysApart":70}]}},{"cve":"CVE-2018-16854","published":"2018-11-26","fixed":"3.5.3","kev":false},{"cve":"CVE-2019-6970","published":"2019-03-18","fixed":"3.5.4","kev":false},{"cve":"CVE-2019-3810","published":"2019-03-25","fixed":"3.6.1","kev":false},{"cve":"CVE-2019-3808","published":"2019-03-25","fixed":"3.6.2","kev":false}],"package":"Packagist:moodle/moodle"}}