{"id":"GHSA-398j-f7m7-795j","summary":"PHPMailer vulnerable to email header injection","details":"### Impact\nArbitrary additional email headers can be injected via crafted From or Sender headers.\n\n### Patches\nFixed in 2.2.1\n\n### Workarounds\nFilter user-supplied values prior to using them in From or Sender properties.\n\n### References\nhttps://nvd.nist.gov/vuln/detail/CVE-2012-0796\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open a private issue in [the PHPMailer project](https://github.com/PHPMailer/PHPMailer)","aliases":["CVE-2012-0796"],"modified":"2023-11-08T03:57:02.744137Z","published":"2022-10-06T21:25:46Z","database_specific":{"github_reviewed_at":"2022-10-06T21:25:46Z","nvd_published_at":"2012-07-17T10:20:00Z","cwe_ids":["CWE-94"],"severity":"HIGH","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/PHPMailer/PHPMailer/security/advisories/GHSA-398j-f7m7-795j"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2012-0796"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=783532"},{"type":"WEB","url":"https://git.moodle.org/gw?p=moodle.git&a=commit&h=62988bf0bbc73df655f51884aaf1f523928abff9"},{"type":"PACKAGE","url":"https://github.com/PHPMailer/PHPMailer"},{"type":"WEB","url":"http://moodle.org/mod/forum/discuss.php?d=194015"},{"type":"WEB","url":"http://www.debian.org/security/2012/dsa-2421"}],"affected":[{"package":{"name":"phpmailer/phpmailer","ecosystem":"Packagist","purl":"pkg:composer/phpmailer/phpmailer"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/10/GHSA-398j-f7m7-795j/GHSA-398j-f7m7-795j.json"}}],"schema_version":"1.9.0"}