{"id":"GHSA-2hh3-jmv8-5fmx","aliases":["CVE-2016-5013"],"title":"Moodle Does Not Escape Characters In Email Headers","titleSource":"OSV","descriptionSource":"OSV","declaredSeverity":"MODERATE","description":"In Moodle 2.x and 3.x, text injection can occur in email headers, potentially leading to outbound spam.","severity":"medium","score":5.4,"published":"2022-05-13T01:12:40.000Z","modified":"2024-02-16T08:08:59.146Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"moodle/moodle","sources":[{"name":"OSV · GHSA-2hh3-jmv8-5fmx","url":"https://osv.dev/vulnerability/GHSA-2hh3-jmv8-5fmx"}],"ranges":[{"events":[{"introduced":"3.1"},{"fixed":"3.1.1"}],"type":"ECOSYSTEM"}],"versions":["v3.1.0","v3.1.0-beta","v3.1.0-rc1","v3.1.0-rc2"],"fixed":["3.1.1"]},{"ecosystem":"Packagist","name":"moodle/moodle","sources":[{"name":"OSV · GHSA-2hh3-jmv8-5fmx","url":"https://osv.dev/vulnerability/GHSA-2hh3-jmv8-5fmx"}],"ranges":[{"events":[{"introduced":"3.0"},{"fixed":"3.0.5"}],"type":"ECOSYSTEM"}],"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"],"fixed":["3.0.5"]},{"ecosystem":"Packagist","name":"moodle/moodle","sources":[{"name":"OSV · GHSA-2hh3-jmv8-5fmx","url":"https://osv.dev/vulnerability/GHSA-2hh3-jmv8-5fmx"}],"ranges":[{"events":[{"introduced":"2.9"},{"fixed":"2.9.7"}],"type":"ECOSYSTEM"}],"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"],"fixed":["2.9.7"]},{"ecosystem":"Packagist","name":"moodle/moodle","sources":[{"name":"OSV · GHSA-2hh3-jmv8-5fmx","url":"https://osv.dev/vulnerability/GHSA-2hh3-jmv8-5fmx"}],"ranges":[{"events":[{"introduced":"2.8"},{"last_affected":"2.8.12"}],"type":"ECOSYSTEM"}],"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"],"fixed":[]},{"ecosystem":"Packagist","name":"moodle/moodle","sources":[{"name":"OSV · GHSA-2hh3-jmv8-5fmx","url":"https://osv.dev/vulnerability/GHSA-2hh3-jmv8-5fmx"}],"ranges":[{"events":[{"introduced":"2.7"},{"fixed":"2.7.15"}],"type":"ECOSYSTEM"}],"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"],"fixed":["2.7.15"]}],"sourceAffected":[],"references":["https://nvd.nist.gov/vuln/detail/CVE-2016-5013","https://github.com/moodle/moodle/commit/ed63718caa48803843a14140d8a27f04aba9c8c4","https://moodle.org/mod/forum/discuss.php?d=336698","https://web.archive.org/web/20210123154543/http://www.securityfocus.com/bid/92040"],"sources":[{"name":"OSV","id":"GHSA-2hh3-jmv8-5fmx","modified":"2024-02-16T08:08:59.146328Z","url":"https://osv.dev/vulnerability/GHSA-2hh3-jmv8-5fmx"}],"assessments":[{"source":"OSV","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4}],"products":[],"remediation":[],"kev":{"status":"not-listed","checkedAt":"2026-10-28T21:45:31.439Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[]}