CVE-2012-0796
MEDIUM 4.0CVSS 2.0PHPMailer vulnerable to email header injection
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.
- Published
- 17 Jul 2012
- Last modified
- 16 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-94
- Also known as
- GHSA-398j-f7m7-795j
- Sources
- NVDJSONOSV GHSA-398j-f7m7-795jJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.0 | AV:N/AC:L/Au:S/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:1.9.1:*:*:*:*:*:*:* |
= 1.9.1 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:1.9.2:*:*:*:*:*:*:* |
= 1.9.2 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:1.9.3:*:*:*:*:*:*:* |
= 1.9.3 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:1.9.4:*:*:*:*:*:*:* |
= 1.9.4 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:1.9.5:*:*:*:*:*:*:* |
= 1.9.5 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:1.9.6:*:*:*:*:*:*:* |
= 1.9.6 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:1.9.7:*:*:*:*:*:*:* |
= 1.9.7 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:1.9.8:*:*:*:*:*:*:* |
= 1.9.8 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:1.9.9:*:*:*:*:*:*:* |
= 1.9.9 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:1.9.10:*:*:*:*:*:*:* |
= 1.9.10 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:1.9.11:*:*:*:*:*:*:* |
= 1.9.11 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:1.9.12:*:*:*:*:*:*:* |
= 1.9.12 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:1.9.13:*:*:*:*:*:*:* |
= 1.9.13 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:1.9.14:*:*:*:*:*:*:* |
= 1.9.14 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:1.9.15:*:*:*:*:*:*:* |
= 1.9.15 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.0.0:*:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.0.1:*:*:*:*:*:*:* |
= 2.0.1 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.0.2:*:*:*:*:*:*:* |
= 2.0.2 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.0.3:*:*:*:*:*:*:* |
= 2.0.3 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.0.4:*:*:*:*:*:*:* |
= 2.0.4 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.0.5:*:*:*:*:*:*:* |
= 2.0.5 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.0.6:*:*:*:*:*:*:* |
= 2.0.6 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.1.0:*:*:*:*:*:*:* |
= 2.1.0 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.1.1:*:*:*:*:*:*:* |
= 2.1.1 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.1.2:*:*:*:*:*:*:* |
= 2.1.2 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.1.3:*:*:*:*:*:*:* |
= 2.1.3 | |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:2.2.0:*:*:*:*:*:*:* |
= 2.2.0 | |
| OSV | Packagist | phpmailer/phpmailer | < 2.2.1 | 2.2.1 |
References
- http://git.moodle.org/gw?p=moodle.git%3Ba=commit%3Bh=62988bf0bbc73df655f51884aaf1f523928abff9
- http://moodle.org/mod/forum/discuss.php?d=194015 · Vendor Advisory, WEB
- http://www.debian.org/security/2012/dsa-2421 · WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=783532 · WEB
- https://github.com/PHPMailer/PHPMailer/security/advisories/GHSA-398j-f7m7-795j · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2012-0796 · ADVISORY
- https://git.moodle.org/gw?p=moodle.git&a=commit&h=62988bf0bbc73df655f51884aaf1f523928abff9 · WEB
- https://github.com/PHPMailer/PHPMailer · PACKAGE
History
- 25 Nov 2026 20:16 UTC · NVD: first stored (published 17 Jul 2012)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Oct 2022)