Skip to content
OpenAdvisories
High CVE-2012-0796 EUVD-2022-7002GHSA-398j-f7m7-795j

PHPMailer vulnerable to email header injection

Published Jul 17, 2012 · Updated Aug 6, 2024 · Assigned by redhat

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 6.0 moodle 1.9.9.dfsg2-2.1+squeeze3 DSA-2421-1

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist phpmailer/phpmailer < 2.2.1 2.2.1 GHSA-398j-f7m7-795j

Advisories 1

References