{"id":"CVE-2015-3174","aliases":["EUVD-2022-2857","GHSA-6r7x-6q98-qcqp","MGASA-2015-0229","UBUNTU-CVE-2015-3174"],"status":"published","title":"Moodle does not set the RISK_XSS bit for graders","description":"mod/quiz/db/access.php in Moodle through 2.5.9, 2.6.x before 2.6.11, 2.7.x before 2.7.8, and 2.8.x before 2.8.6 does not set the RISK_XSS bit for graders, which allows remote authenticated users to conduct cross-site scripting (XSS) attacks via crafted gradebook feedback during manual quiz grading.","severity":{"version":"2.0","score":3.5,"vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","level":"low","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.01449,"percentile":0.73496,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2015-05-18T19:08:05Z","modified":"2026-06-17T00:25:27Z","fixes":[{"ecosystem":"Packagist","package":"moodle/moodle","fixed_in":["2.6.11","2.7.8","2.8.6"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.11"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.7.0"},{"fixed":"2.7.8"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.8.0"},{"fixed":"2.8.6"}]}]},{"source":"osv","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.11"}]}],"versions":["v2.3.10","v2.3.11","v2.3.4","v2.3.5","v2.3.6","v2.3.7","v2.3.8","v2.3.9","v2.4.0","v2.4.0-rc1","v2.4.1","v2.4.10","v2.4.11","v2.4.2","v2.4.3","v2.4.4","v2.4.5","v2.4.6","v2.4.7","v2.4.8","v2.4.9","v2.5.0","v2.5.0-beta","v2.5.0-rc1","v2.5.1","v2.5.2","v2.5.3","v2.5.4","v2.5.5","v2.5.6","v2.5.7","v2.5.8","v2.5.9","v2.6.0","v2.6.0-beta","v2.6.0-rc1","v2.6.1","v2.6.10","v2.6.2","v2.6.3","v2.6.4","v2.6.5","v2.6.6","v2.6.7","v2.6.8","v2.6.9"]},{"source":"osv","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.7.0"},{"fixed":"2.7.8"}]}],"versions":["v2.7.0","v2.7.1","v2.7.2","v2.7.3","v2.7.4","v2.7.5","v2.7.6","v2.7.7"]},{"source":"osv","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.8.0"},{"fixed":"2.8.6"}]}],"versions":["v2.8.0","v2.8.1","v2.8.2","v2.8.3","v2.8.4","v2.8.5"]},{"source":"osv","ecosystem":"Mageia:4","package":"moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.11-1.mga4"}]}],"bundled":7}],"products":[{"vendor":"moodle","product":"moodle"}],"references":[{"url":"http://www.securitytracker.com/id/1032358","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred"]},{"url":"http://git.moodle.org/gw?p=moodle.git\u0026a=search\u0026h=HEAD\u0026st=commit\u0026s=MDL-49941","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=313681","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","web","report"]},{"url":"http://openwall.com/lists/oss-security/2015/05/18/1","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://www.securityfocus.com/bid/74719","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2015-3174","tags":["advisory"]},{"url":"https://github.com/moodle/moodle/commit/10c2b92448873a8479942098a090e7c16b44438d","tags":["web"]},{"url":"https://github.com/moodle/moodle/commit/1ce4f44df7e793051211841b6a78ac77bd42fc99","tags":["web"]},{"url":"https://github.com/moodle/moodle/commit/39ae18a2f90fcf392a711dd41f9aa7627f72a762","tags":["web"]},{"url":"https://github.com/moodle/moodle/commit/e51fdfe0cbab19320f139773d83aacb1ad15eb46","tags":["web"]},{"url":"https://web.archive.org/web/20201030042703/http://www.securitytracker.com/id/1032358","tags":["web"]},{"url":"http://www.securityfocus.com/bid/74719https://web.archive.org/web/20200228054910/http://www.securityfocus.com/bid/74719","tags":["web"]},{"url":"https://github.com/advisories/GHSA-6r7x-6q98-qcqp"},{"url":"https://github.com/moodle/moodle","tags":["package"]},{"url":"https://advisories.mageia.org/MGASA-2015-0229.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=15909","tags":["report"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=313682","tags":["web"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=313683","tags":["web"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=313685","tags":["web"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=313686","tags":["web"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=313687","tags":["web"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=313688","tags":["web"]},{"url":"https://docs.moodle.org/dev/Moodle_2.6.11_release_notes","tags":["web"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=313322","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2015-3174","tags":["report"]},{"url":"http://www.openwall.com/lists/oss-security/2015/05/18/1","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2015-3174","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2015-3174","description":"mod/quiz/db/access.php in Moodle through 2.5.9, 2.6.x before 2.6.11, 2.7.x before 2.7.8, and 2.8.x before 2.8.6 does not set the RISK_XSS bit for graders, which allows remote authenticated users to conduct cross-site scripting (XSS) attacks via crafted gradebook feedback during manual quiz grading.","status":"published","published":"2015-06-01T19:00:00Z","modified":"2024-08-06T05:39:31.611Z","updated_at":"2026-11-02T14:35:41.976732Z"}],"euvd":[{"id":"EUVD-2022-2857","description":"mod/quiz/db/access.php in Moodle through 2.5.9, 2.6.x before 2.6.11, 2.7.x before 2.7.8, and 2.8.x before 2.8.6 does not set the RISK_XSS bit for graders, which allows remote authenticated users to conduct cross-site scripting (XSS) attacks via crafted gradebook feedback during manual quiz grading.","status":"published","published":"2015-06-01T19:00:00Z","modified":"2024-08-06T05:39:31Z","updated_at":"2026-11-03T02:22:09.179399Z"}],"ghsa":[{"id":"GHSA-6r7x-6q98-qcqp","title":"Moodle does not set the RISK_XSS bit for graders","description":"mod/quiz/db/access.php in Moodle through 2.5.9, 2.6.x before 2.6.11, 2.7.x before 2.7.8, and 2.8.x before 2.8.6 does not set the RISK_XSS bit for graders, which allows remote authenticated users to conduct cross-site scripting (XSS) attacks via crafted gradebook feedback during manual quiz grading.","status":"published","published":"2022-05-13T01:12:45Z","modified":"2024-01-26T01:04:47Z","cwes":["CWE-79"],"updated_at":"2026-11-02T14:37:33.019154Z"}],"nvd":[{"id":"CVE-2015-3174","description":"mod/quiz/db/access.php in Moodle through 2.5.9, 2.6.x before 2.6.11, 2.7.x before 2.7.8, and 2.8.x before 2.8.6 does not set the RISK_XSS bit for graders, which allows remote authenticated users to conduct cross-site scripting (XSS) attacks via crafted gradebook feedback during manual quiz grading.","status":"published","published":"2015-06-01T19:59:17.243Z","modified":"2026-06-17T00:25:27.933Z","cvss":[{"version":"2.0","score":3.5,"vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","level":"low","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:03:04.906059Z"}],"osv":[{"id":"GHSA-6r7x-6q98-qcqp","title":"Moodle does not set the RISK_XSS bit for graders","description":"mod/quiz/db/access.php in Moodle through 2.5.9, 2.6.x before 2.6.11, 2.7.x before 2.7.8, and 2.8.x before 2.8.6 does not set the RISK_XSS bit for graders, which allows remote authenticated users to conduct cross-site scripting (XSS) attacks via crafted gradebook feedback during manual quiz grading.","status":"published","published":"2022-05-13T01:12:45Z","modified":"2024-12-08T05:38:54.511413Z","cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:39.965326Z"},{"id":"MGASA-2015-0229","title":"Updated moodle packages fix security vulnerabilities","description":"Updated moodle package fixes security vulnerabilities:\n\nIn Moodle before 2.6.11, leaving gradebook feedback is a trusted action and\nsuch capabilities in other modules already have an XSS mask, 'mod/quiz:grade'\nwas missing this flag (CVE-2015-3174).\n\nIn Moodle before 2.6.11, some error messages display a button to return to\nthe previous page. Redirecting to non-local referer should not be allowed as\nit can potentially be used for phising (CVE-2015-3175).\n\nIn Moodle before 2.6.11, on sites with enabled self-registration, not\nregistered users can retrieve fullname of registered users if they know their\nusernames (CVE-2015-3176).\n\nIn Moodle before 2.6.11, if a user who is not XSS-trusted attempts to insert\na script as part of the input text, it will be cleaned when displayed on the\nMoodle website but may be displayed uncleaned in the external application\nbecause external_format_text() cleans and formats text incorrectly when\nreturning it from Web Services (CVE-2015-3178).\n\nIn Moodle before 2.6.11, when self-registration is enabled and a user's\naccount was suspended after creating the account but before actually\nconfirming it, the user is still able to login when confirming their email,\nbut only once (CVE-2015-3179).\n\nIn Moodle before 2.6.11, if a user is enrolled in the course but his\nenrollment is suspended, they can not access the course but still were able\nto see the course structure in the navigation block (CVE-2015-3180).\n\nIn Moodle before 2.6.11, users with the revoked capability\n'moodle/user:manageownfiles' are still able to upload private files using a\ndeprecated function in Web Services (CVE-2015-3181).\n","status":"published","published":"2015-05-18T19:08:05Z","modified":"2026-04-16T06:23:41.341038785Z","updated_at":"2026-11-02T15:49:39.792687Z"},{"id":"UBUNTU-CVE-2015-3174","description":"mod/quiz/db/access.php in Moodle through 2.5.9, 2.6.x before 2.6.11, 2.7.x before 2.7.8, and 2.8.x before 2.8.6 does not set the RISK_XSS bit for graders, which allows remote authenticated users to conduct cross-site scripting (XSS) attacks via crafted gradebook feedback during manual quiz grading.","status":"withdrawn","published":"2015-06-01T19:59:00Z","modified":"2025-07-16T07:17:30.971336Z","updated_at":"2026-11-02T15:54:10.045446Z"}]}}
