Live threats

All CVEs / Moodle

CVE-2012-0796Moodle

Medium 4.0

Priority
24
CVSS 2.0
4.0
EPSS
1.7%
probability of exploitation in 30 days · percentile 77
Auth required
Yes
Published
Jul 17, 2012
Updated
Jun 16, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-94
Vector
AV:N/AC:L/Au:S/C:N/I:P/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Moodle.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist phpmailer/phpmailer < 2.2.1 2.2.1 composer require "phpmailer/phpmailer:^2.2.1"

Per OSV / GitHub Advisories (GHSA-398j-f7m7-795j). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
moodlemoodle1.9.1
moodlemoodle1.9.2
moodlemoodle1.9.3
moodlemoodle1.9.4
moodlemoodle1.9.5
moodlemoodle1.9.6
moodlemoodle1.9.7
moodlemoodle1.9.8
moodlemoodle1.9.9
moodlemoodle1.9.10
moodlemoodle1.9.11
moodlemoodle1.9.12
moodlemoodle1.9.13
moodlemoodle1.9.14
moodlemoodle1.9.15
moodlemoodle2.0.0
moodlemoodle2.0.1
moodlemoodle2.0.2
moodlemoodle2.0.3
moodlemoodle2.0.4
moodlemoodle2.0.5
moodlemoodle2.0.6
moodlemoodle2.1.0
moodlemoodle2.1.1
moodlemoodle2.1.2
moodlemoodle2.1.3
moodlemoodle2.2.0

Official sources

References

Links published by the sources. Open them with care.