OS command injection in PHPMailer - CVE-2007-3215

 

OS command injection in PHPMailer - CVE-2007-3215

Published: December 4, 2026


Vulnerability identifier: #VU173531
CSH Severity: Medium
CVSS v4: 7.7 [CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2007-3215
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: No public exploit available

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

PHPMailer
Debian Linux
libphp-phpmailer (Debian package)

How to mitigate CVE-2007-3215

Install updates from vendor's website.

PHPMailer - update to 2.0.3
libphp-phpmailer (Debian package) - update to 1.73-2etch1

External References

Related Security Bulletins