{"id":"CVE-2016-7038","aliases":["EUVD-2022-2024","GHSA-2phx-w35g-x9vm","UBUNTU-CVE-2016-7038"],"status":"published","title":"Moodle Weak Password Recovery Mechanism for Forgotten Password","description":"In Moodle 2.x and 3.x, web service tokens are not invalidated when the user password is changed or forced to be changed.","severity":{"version":"3.0","score":7.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.00972,"percentile":0.62187,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-640"],"published":"2017-01-20T08:39:00Z","modified":"2026-10-24T10:30:40Z","fixes":[{"ecosystem":"Packagist","package":"moodle/moodle","fixed_in":["2.7.16","2.9.8","3.0.6","3.1.2"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.7"},{"fixed":"2.7.16"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.9"},{"fixed":"2.9.8"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0"},{"fixed":"3.0.6"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.1"},{"fixed":"3.1.2"}]}]},{"source":"osv","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.7"},{"fixed":"2.7.16"}]}],"versions":["v2.7.0","v2.7.0-beta","v2.7.0-rc1","v2.7.0-rc2","v2.7.1","v2.7.10","v2.7.11","v2.7.12","v2.7.13","v2.7.14","v2.7.15","v2.7.2","v2.7.3","v2.7.4","v2.7.5","v2.7.6","v2.7.7","v2.7.8","v2.7.9"]},{"source":"osv","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.9"},{"fixed":"2.9.8"}]}],"versions":["v2.9.0","v2.9.0-beta","v2.9.0-rc1","v2.9.0-rc2","v2.9.1","v2.9.2","v2.9.3","v2.9.4","v2.9.5","v2.9.6","v2.9.7"]},{"source":"osv","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0"},{"fixed":"3.0.6"}]}],"versions":["v3.0.0","v3.0.0-beta","v3.0.0-rc1","v3.0.0-rc2","v3.0.0-rc3","v3.0.0-rc4","v3.0.1","v3.0.2","v3.0.3","v3.0.4","v3.0.5"]},{"source":"osv","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.1"},{"fixed":"3.1.2"}]}],"versions":["v3.1.0","v3.1.0-beta","v3.1.0-rc1","v3.1.0-rc2","v3.1.1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.7.9+dfsg-1","2.7.10+dfsg-1","2.7.11+dfsg-1","2.7.11+dfsg-2","2.7.12+dfsg-1","3.0.3+dfsg-0ubuntu1","3.0.3+dfsg-0ubuntu1+esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.3+dfsg-0ubuntu1","3.0.3+dfsg-0ubuntu1+esm1"]}],"products":[{"vendor":"moodle","product":"moodle"}],"references":[{"url":"https://moodle.org/mod/forum/discuss.php?d=339631","tags":["x_refsource_CONFIRM","x_transferred","Patch","Vendor Advisory","fix","web","report"]},{"url":"http://www.securityfocus.com/bid/93174","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-7038","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-2phx-w35g-x9vm"},{"url":"https://github.com/moodle/moodle","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2016-7038","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-7038","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2016-7038","description":"In Moodle 2.x and 3.x, web service tokens are not invalidated when the user password is changed or forced to be changed.","status":"published","published":"2017-01-20T08:39:00Z","modified":"2024-08-06T01:50:46.881Z","updated_at":"2026-11-02T14:33:36.483151Z"}],"euvd":[{"id":"EUVD-2022-2024","description":"In Moodle 2.x and 3.x, web service tokens are not invalidated when the user password is changed or forced to be changed.","status":"published","published":"2017-01-20T08:39:00Z","modified":"2024-08-06T01:50:46Z","updated_at":"2026-11-03T02:22:34.587517Z"}],"ghsa":[{"id":"GHSA-2phx-w35g-x9vm","title":"Moodle Weak Password Recovery Mechanism for Forgotten Password","description":"In Moodle 2.x and 3.x, web service tokens are not invalidated when the user password is changed or forced to be changed.","status":"published","published":"2022-05-13T01:12:40Z","modified":"2024-04-23T23:41:18Z","cvss":[{"version":"3.0","score":7.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high"}],"cwes":["CWE-640"],"updated_at":"2026-11-02T14:37:44.867253Z"}],"nvd":[{"id":"CVE-2016-7038","description":"In Moodle 2.x and 3.x, web service tokens are not invalidated when the user password is changed or forced to be changed.","status":"published","published":"2017-01-20T08:59:00.283Z","modified":"2026-06-17T00:52:11.867Z","cvss":[{"version":"3.0","score":7.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-640"],"updated_at":"2026-11-02T14:03:35.029632Z"}],"osv":[{"id":"CVE-2016-7038","description":"In Moodle 2.x and 3.x, web service tokens are not invalidated when the user password is changed or forced to be changed.","status":"published","published":"2017-01-20T08:59:00.283Z","modified":"2026-10-24T10:30:40.229816001Z","cvss":[{"version":"3.0","score":7.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high"}],"updated_at":"2026-11-02T15:44:02.776224Z"},{"id":"GHSA-2phx-w35g-x9vm","title":"Moodle Weak Password Recovery Mechanism for Forgotten Password","description":"In Moodle 2.x and 3.x, web service tokens are not invalidated when the user password is changed or forced to be changed.","status":"published","published":"2022-05-13T01:12:40Z","modified":"2024-04-24T00:11:48.603784Z","cvss":[{"version":"3.0","score":7.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high"}],"cwes":["CWE-640"],"updated_at":"2026-11-02T15:46:34.700741Z"},{"id":"UBUNTU-CVE-2016-7038","description":"In Moodle 2.x and 3.x, web service tokens are not invalidated when the user password is changed or forced to be changed.","status":"published","published":"2017-01-20T08:59:00Z","modified":"2026-09-23T18:45:32.641413109Z","cvss":[{"version":"3.0","score":7.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high"}],"updated_at":"2026-11-02T15:54:12.642042Z"}]}}
