CVE-2015-8476 SMTP Injection in PHPMailer
Attackers can inject arbitrary SMTP commands via CRLF sequences in email addresses or commands, potentially leading to code execution or security bypass.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2015-8476?
CVE-2015-8476 is a medium-severity command injection vulnerability in Debian Debian Linux, published on 16 Dec 2015. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-20
Which versions are affected by CVE-2015-8476?
2 open source packages ship an affected version, including phpmailer/phpmailer. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
phpmailer/phpmailer Packagist | From 5.0.0 | 5.2.14 |
phpmailer/phpmailer Packagist | From 5.0.0 | 5.2.14 |
Products include Debian Debian Linux, Phpmailer Project Phpmailer.
How do I fix CVE-2015-8476?
Upgrade phpmailer/phpmailer to 5.2.14 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2015-8476 being exploited?
There is no known exploitation of CVE-2015-8476 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as DEBIAN-CVE-2015-8476, DLA-363-1, DSA-3416-1, GHSA-738m-f33v-qc2r, MGASA-2015-0484, UBUNTU-CVE-2015-8476.