{"id":"GHSA-2hh3-jmv8-5fmx","summary":"Moodle Does Not Escape Characters In Email Headers","details":"In Moodle 2.x and 3.x, text injection can occur in email headers, potentially leading to outbound spam.","aliases":["CVE-2016-5013"],"modified":"2024-02-16T08:08:59.146328Z","published":"2022-05-13T01:12:40Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2023-07-28T22:10:13Z","nvd_published_at":"2017-01-20T08:59:00Z","cwe_ids":["CWE-74"],"severity":"MODERATE"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2016-5013"},{"type":"WEB","url":"https://github.com/moodle/moodle/commit/ed63718caa48803843a14140d8a27f04aba9c8c4"},{"type":"WEB","url":"https://moodle.org/mod/forum/discuss.php?d=336698"},{"type":"WEB","url":"https://web.archive.org/web/20210123154543/http://www.securityfocus.com/bid/92040"}],"affected":[{"package":{"name":"moodle/moodle","ecosystem":"Packagist","purl":"pkg:composer/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"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-2hh3-jmv8-5fmx/GHSA-2hh3-jmv8-5fmx.json"}},{"package":{"name":"moodle/moodle","ecosystem":"Packagist","purl":"pkg:composer/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"],"database_specific":{"last_known_affected_version_range":"\u003c= 3.0.4","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-2hh3-jmv8-5fmx/GHSA-2hh3-jmv8-5fmx.json"}},{"package":{"name":"moodle/moodle","ecosystem":"Packagist","purl":"pkg:composer/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"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-2hh3-jmv8-5fmx/GHSA-2hh3-jmv8-5fmx.json","last_known_affected_version_range":"\u003c= 2.9.6"}},{"package":{"name":"moodle/moodle","ecosystem":"Packagist","purl":"pkg:composer/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"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-2hh3-jmv8-5fmx/GHSA-2hh3-jmv8-5fmx.json"}},{"package":{"name":"moodle/moodle","ecosystem":"Packagist","purl":"pkg:composer/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"],"database_specific":{"last_known_affected_version_range":"\u003c= 2.7.14","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-2hh3-jmv8-5fmx/GHSA-2hh3-jmv8-5fmx.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"}]}