VDB
Sign up
HIGH

GHSA-398j-f7m7-795j

PHPMailer vulnerable to email header injection

Quick fix

GHSA-398j-f7m7-795j — phpmailer/phpmailer: upgrade to the fixed version with the command below.

composer require phpmailer/phpmailer:^2.2.1

Details

### 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)

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/phpmailer/phpmailer
Introduced in: 0Fixed in: 2.2.1
Fixcomposer require phpmailer/phpmailer:^2.2.1

References