{"id":"CVE-2016-5013","aliases":["EUVD-2022-1991","GHSA-2hh3-jmv8-5fmx","UBUNTU-CVE-2016-5013"],"status":"published","title":"Moodle Does Not Escape Characters In Email Headers","description":"In Moodle 2.x and 3.x, text injection can occur in email headers, potentially leading to outbound spam.","severity":{"version":"3.0","score":5.4,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.01056,"percentile":0.64648,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-74"],"published":"2017-01-20T08:39:00Z","modified":"2026-10-24T10:30:27Z","fixes":[{"ecosystem":"Packagist","package":"moodle/moodle","fixed_in":["3.0.5","2.9.7","2.7.15","3.1.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0"},{"last_affected":"3.0.4"},{"fixed":"3.0.5"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.9"},{"last_affected":"2.9.6"},{"fixed":"2.9.7"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.8"},{"last_affected":"2.8.12"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.7"},{"last_affected":"2.7.14"},{"fixed":"2.7.15"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.1"},{"fixed":"3.1.1"}]}]},{"source":"osv","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.1"},{"fixed":"3.1.1"}]}],"versions":["v3.1.0","v3.1.0-beta","v3.1.0-rc1","v3.1.0-rc2"]},{"source":"osv","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0"},{"fixed":"3.0.5"}]}],"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"]},{"source":"osv","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.9"},{"fixed":"2.9.7"}]}],"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"]},{"source":"osv","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.8"},{"last_affected":"2.8.12"}]}],"versions":["v2.8.0","v2.8.0-beta","v2.8.0-rc1","v2.8.0-rc2","v2.8.1","v2.8.10","v2.8.11","v2.8.12","v2.8.2","v2.8.3","v2.8.4","v2.8.5","v2.8.6","v2.8.7","v2.8.8","v2.8.9"]},{"source":"osv","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.7"},{"fixed":"2.7.15"}]}],"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.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":"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=336698","tags":["x_refsource_CONFIRM","x_transferred","Mitigation","Patch","Vendor Advisory","fix","web"]},{"url":"http://www.securityfocus.com/bid/92040","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-5013","tags":["advisory"]},{"url":"https://github.com/moodle/moodle/commit/ed63718caa48803843a14140d8a27f04aba9c8c4","tags":["web"]},{"url":"https://web.archive.org/web/20210123154543/http://www.securityfocus.com/bid/92040","tags":["web"]},{"url":"https://github.com/advisories/GHSA-2hh3-jmv8-5fmx"},{"url":"https://ubuntu.com/security/CVE-2016-5013","tags":["report"]},{"url":"https://moodle.org/mod/forum/search.php?id=1\u0026search=CVE-2016-5013","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-5013","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2016-5013","description":"In Moodle 2.x and 3.x, text injection can occur in email headers, potentially leading to outbound spam.","status":"published","published":"2017-01-20T08:39:00Z","modified":"2024-08-06T00:46:40.198Z","updated_at":"2026-11-02T14:33:30.767029Z"}],"euvd":[{"id":"EUVD-2022-1991","description":"In Moodle 2.x and 3.x, text injection can occur in email headers, potentially leading to outbound spam.","status":"published","published":"2017-01-20T08:39:00Z","modified":"2024-08-06T00:46:40Z","updated_at":"2026-11-03T02:22:43.959327Z"}],"ghsa":[{"id":"GHSA-2hh3-jmv8-5fmx","title":"Moodle Does Not Escape Characters In Email Headers","description":"In Moodle 2.x and 3.x, text injection can occur in email headers, potentially leading to outbound spam.","status":"published","published":"2022-05-13T01:12:40Z","modified":"2023-09-12T14:23:32Z","cvss":[{"version":"3.0","score":5.4,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-74"],"updated_at":"2026-11-02T14:37:04.447845Z"}],"nvd":[{"id":"CVE-2016-5013","description":"In Moodle 2.x and 3.x, text injection can occur in email headers, potentially leading to outbound spam.","status":"published","published":"2017-01-20T08:59:00.22Z","modified":"2026-06-17T00:48:36.88Z","cvss":[{"version":"3.0","score":5.4,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":5.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-74"],"updated_at":"2026-11-02T14:03:35.029632Z"}],"osv":[{"id":"CVE-2016-5013","description":"In Moodle 2.x and 3.x, text injection can occur in email headers, potentially leading to outbound spam.","status":"published","published":"2017-01-20T08:59:00.22Z","modified":"2026-10-24T10:30:27.888781407Z","cvss":[{"version":"3.0","score":5.4,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:02.454775Z"},{"id":"GHSA-2hh3-jmv8-5fmx","title":"Moodle Does Not Escape Characters In Email Headers","description":"In Moodle 2.x and 3.x, text injection can occur in email headers, potentially leading to outbound spam.","status":"published","published":"2022-05-13T01:12:40Z","modified":"2024-02-16T08:08:59.146328Z","cvss":[{"version":"3.0","score":5.4,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-74"],"updated_at":"2026-11-02T15:46:34.338541Z"},{"id":"UBUNTU-CVE-2016-5013","description":"In Moodle 2.x and 3.x, text injection can occur in email headers, potentially leading to outbound spam.","status":"published","published":"2017-01-20T08:59:00Z","modified":"2026-09-23T18:45:55.299667198Z","cvss":[{"version":"3.0","score":5.4,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:54:12.261906Z"}]}}
