CRLF injection in PHPMailer - #VU173509

 

CRLF injection in PHPMailer - #VU173509

Published: December 4, 2026


Vulnerability identifier: #VU173509
CSH Severity: Low
CVSS v4: 5.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-93
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to inject or duplicate MIME part headers and potentially cause an attachment to be rendered as inline HTML.

The vulnerability exists due to improper neutralization of CRLF sequences in PHPMailer's attachAll() method when it writes the MIME type supplied through addAttachment() or addStringAttachment() into the Content-Type header. A remote user can influence the MIME type that the application passes to PHPMailer to alter how a recipient's mail client interprets the attachment.


Affected software

PHPMailer

Remediation

Install security update from vendor's website.

PHPMailer - update to 7.4.0

External References

Related Security Bulletins