All vulnerabilities

Servers and applications

CVE-2012-0796

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.

Severity
Medium 4.0
Published
17 Jul 2012
Last changed
16 Jun 2026
Added to UpHeron
1 Nov 2026
Exploit chance
1.7% in the next 30 daysHigher than 77% of CVEs. EPSS by FIRST, 12 Nov 2026
Weakness
Code injection (CWE-94)
Attack
Over the network · Needs a login
Attacker can
Change some data
CVSS vector
AV:N/AC:L/Au:S/C:N/I:P/A:N
Sources
NVD

Affected software

SoftwareAffected versions
MoodleServers and applications · cpe:a:moodle:moodle
  • Version 2.2.0
  • Version 2.1.3
  • Version 2.1.2
  • Version 2.1.1
All 27 release lines
  • Version 1.9.1
  • Version 1.9.2
  • Version 1.9.3
  • Version 1.9.4
  • Version 1.9.5
  • Version 1.9.6
  • Version 1.9.7
  • Version 1.9.8
  • Version 1.9.9
  • Version 1.9.10
  • Version 1.9.11
  • Version 1.9.12
  • Version 1.9.13
  • Version 1.9.14
  • Version 1.9.15
  • Version 2.0.0
  • Version 2.0.1
  • Version 2.0.2
  • Version 2.0.3
  • Version 2.0.4
  • Version 2.0.5
  • Version 2.0.6
  • Version 2.1.0
  • Version 2.1.1
  • Version 2.1.2
  • Version 2.1.3
  • Version 2.2.0

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2012-0796
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2012-0796