All reports
High

PHPMailer vulnerable to email header injection

Affected versions

Affected versions
< 2.2.1
Fixed version
2.2.1

Exploitation

CVE-2012-0796

Probability of exploitation in the next 30 days: 1.66%

FIRST EPSS · 2026-11-23

Description

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:

Links