Advisory

GHSA-398j-f7m7-795j

Also known as: CVE-2012-0796

Summary

PHPMailer vulnerable to email header injection

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:

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-10-06 21:25 UTC
Modified
2023-11-08 03:57 UTC

Affected packages and fixes

phpmailer/phpmailer

Packagist · All systems

Affected

  • introduced 0, fixed 2.2.1 (ecosystem)

Fixed versions

2.2.1

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences