CVE-2012-0796
mediumpriority · track · 17EPSS 0.017 · 77 %ileEUUSEPSS · scored 2026-10-27
class.phpmailer.php in the PHPMailer library, as used in Moodle 1.9.x before 1.9.16, 2.0.x before 2.0.7, 2.1.x before 2.1.4, and 2.2.x before 2.2.1 and other products, allows remote authenticated users to inject arbitrary e-mail headers via vectors involving a crafted (1) From: or (2) Sender: header.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · low–medium · 3.4–4
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (29)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-398j-f7m7-795jPHPMailer vulnerable to email header injection2022-10-06ghsa · osvUS
### Impact Arbitrary additional email headers can be injected via crafted From or Sender headers. ### Patches Fixed in 2.2.1 ### Workarounds Filter user-supplied values prior to using them in From or Sender properties. ### References https://nvd.nist.gov/vuln/detail/CVE-2012-0796 ### For more information If you have any questions or comments about this advisory: * Open a private issue in [the PHPMailer project](https://github.com/PHPMailer/PHPMailer)
also known as (2)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (8)
External citations — patches, advisories, analysis.
- http://git.moodle.org/gw?p=moodle.git%3Ba=commit%3Bh=62988bf0bbc73df655f51884aaf1f523928abff9enisa_euvd
- http://moodle.org/mod/forum/discuss.php?d=194015enisa_euvd
- http://www.debian.org/security/2012/dsa-2421enisa_euvd
- https://bugzilla.redhat.com/show_bug.cgi?id=783532enisa_euvd
- http://git.moodle.org/gw?p=moodle.git%3Ba=commit%3Bh=62988bf0bbc73df655f51884aaf1f523928abff9nvd
- http://moodle.org/mod/forum/discuss.php?d=194015Vendor Advisorynvd
- http://www.debian.org/security/2012/dsa-2421nvd
- https://bugzilla.redhat.com/show_bug.cgi?id=783532nvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan