OS command injection in PHPMailer - CVE-2007-3215
Published: December 4, 2026
Vulnerability details
The vulnerability allows a remote user to execute arbitrary shell commands on the target system.
The vulnerability exists due to improper input validation when handling "Sender" property. A remote user can pass specially crafted data via the "Sender" property and execute arbitrary OS commands on the target system.
Successful exploitation of this vulnerability requires that sendmail is used as the email agent.
Affected software
Debian Linux
libphp-phpmailer (Debian package)
How to mitigate CVE-2007-3215
libphp-phpmailer (Debian package) - update to 1.73-2etch1