Description
Multiple CRLF injection vulnerabilities in PHPMailer before 5.2.14 allow attackers to inject arbitrary SMTP commands via CRLF sequences in an (1) email address to the validateAddress function in class.phpmailer.php or (2) SMTP command to the sendCommand function in class.smtp.php, a different vulnerability than CVE-2012-0796.
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libphp-phpmailer | 5.2.14+dfsg-1 | — |
| Debian 13 | libphp-phpmailer | 5.2.14+dfsg-1 | — |
| Debian 12 | libphp-phpmailer | 5.2.14+dfsg-1 | — |
| Debian 8 | libphp-phpmailer | 5.2.9+dfsg-2+deb8u1 | DSA-3416-1 |
| Debian 7 | libphp-phpmailer | 5.1-1.1 | DSA-3416-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 6.0 | libphp-phpmailer | 5.1-1+deb6u11 | DLA-363-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | libphp-phpmailer | 5.1-1+deb6u11build0.14.04.1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | phpmailer/phpmailer | >= 5.0.0, < 5.2.14 | 5.2.14 | GHSA-738m-f33v-qc2r |
Advisories 2
- DSA-3416-1 libphp-phpmailer - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-363-1 libphp-phpmailer - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- https://github.com/PHPMailer/PHPMailer/commit/6687a96a18b8f12148881e4ddde795ae477284b0
- FEDORA-2015-39522bb8c9 vendor-advisory
- [oss-security] 20151204 Re: CVE Request: PHPMailer Message Injection Vulnerability mailing-list
- https://github.com/PHPMailer/PHPMailer/releases/tag/v5.2.14
- DSA-3416 vendor-advisory
- FEDORA-2015-abf9659276 vendor-advisory
- 78619 vdb-entry
- [oss-security] 20151204 CVE Request: PHPMailer Message Injection Vulnerability mailing-list