{"id":"CVE-2019-3847","published":"2019-03-27T00:00:00Z","modified":"2024-08-04T19:19:18Z","title":"A vulnerability was found in moodle before versions 3.6.3, 3.5.5, 3.4.8 and 3.1.17","vendor":null,"product":"Moodle","tier":"tail","description":{"text":"A vulnerability was found in moodle before versions 3.6.3, 3.5.5, 3.4.8 and 3.1.17. Users with the \"login as other users\" capability (such as administrators/managers) can access other users' Dashboards, but the JavaScript those other users may have added to their Dashboard was not being escaped when being viewed by the user logging in on their behalf.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02224,"percentile":0.83138,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"http://www.securityfocus.com/bid/107489","tags":["vdb-entry"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-3847","tags":[]},{"url":"https://moodle.org/mod/forum/discuss.php?d=384010#p1547742","tags":[]}],"priority":{"score":25.4,"factors":[{"name":"EPSS percentile","points":16.63},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":3.78}]},"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 to 3.6.2","3.5 to 3.5.4","3.4 to 3.4.7","3.1 to 3.1.16 and earlier unsupported versions"]}],"affected":[{"ecosystem":"Packagist","package":"moodle/moodle","vulnerableRanges":[">=3.6.0, <3.6.3",">=3.5.0, <3.5.5",">=3.2.0, <3.4.8","<3.1.17"],"patched":["3.6.3","3.5.5","3.4.8","3.1.17"],"from":["GHSA-qrcj-6fjw-3h9h"],"provenance":"source"}],"summary":{"text":"Moodle's Dashboard view fails to escape JavaScript that users have added to their own Dashboard, so the flaw lives in the Dashboard rendering of the Moodle product. An attacker who holds the \"login as other users\" capability (such as an administrator or manager) and who views another user's Dashboard through that impersonation can have the injected script run in their session, which requires network access and low-privileged authentication with no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T07:23:46Z"},"euvd":{"id":"EUVD-2022-5022","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-unknown-moodle-cve-2015-2270","parents":[{"from":"CVE-2015-2270","to":"CVE-2019-3847","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/moodlelib.php"],"commits":["https://github.com/moodle/moodle/commit/1edd3d6fbfcc7ac757579a7953f03e3401c0c32d","https://github.com/moodle/moodle/commit/4ab4ec652cb7768a058eca7f69362e76d9ee0c62","https://github.com/moodle/moodle/commit/070f24d006eab6b958eb083530de159b43c538ed","https://github.com/moodle/moodle/commit/93dda3bfd3caaaa8d23fe8ede543f27ef774958d"],"basis":"shared function","functions":["require_login"]}]}],"packageHistory":[{"cve":"CVE-2019-3809","published":"2019-03-25","fixed":"3.1.16","kev":false,"link":{"from":"CVE-2019-3809","to":"CVE-2019-3847","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:moodle/moodle","fromFixed":"3.1.16","toFixed":"3.1.17","daysApart":2}]}},{"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},{"cve":"CVE-2019-3847","published":"2019-03-27","fixed":"3.6.3","kev":false},{"cve":"CVE-2019-3848","published":"2019-03-26","fixed":"3.6.3","kev":false},{"cve":"CVE-2019-3849","published":"2019-03-26","fixed":"3.6.3","kev":false},{"cve":"CVE-2019-3850","published":"2019-03-26","fixed":"3.6.3","kev":false},{"cve":"CVE-2019-10133","published":"2019-06-26","fixed":"3.6.4","kev":false,"link":{"from":"CVE-2019-3847","to":"CVE-2019-10133","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:moodle/moodle","fromFixed":"3.1.17","toFixed":"3.1.18","daysApart":91}]}},{"cve":"CVE-2019-10134","published":"2019-06-26","fixed":"3.6.4","kev":false,"link":{"from":"CVE-2019-3847","to":"CVE-2019-10134","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:moodle/moodle","fromFixed":"3.1.17","toFixed":"3.1.18","daysApart":91}]}}],"package":"Packagist:moodle/moodle"}}