SB20261204215 - Multiple vulnerabilities in PHPMailer



SB20261204215 - Multiple vulnerabilities in PHPMailer

Published: December 4, 2026

Security Bulletin ID SB20261204215
CSH Severity
Medium
Patch available
YES
Number of vulnerabilities 8
Exploitation vector Remote access
Highest impact Data manipulation

Breakdown by Severity

Medium 50% Low 50%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 8 vulnerabilities.


1) Improper Neutralization of Special Elements in Output Used by a Downstream Component (CVE-ID: N/A)

CWE-ID: CWE-74 - Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

CVSSv4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to make PHPMailer report a successful send even when the SMTP server rejects or never receives the message.

The vulnerability exists due to improper handling of buffered plaintext in PHPMailer's SMTP::startTLS() when upgrading an SMTP connection to TLS, allowing pre-upgrade data to be read as encrypted-session replies. A remote attacker can alter traffic on the network path to inject forged SMTP replies and conceal a failed send.


2) Improper Handling of Unicode Encoding (CVE-ID: N/A)

CWE-ID: CWE-176 - Improper Handling of Unicode Encoding

CVSSv4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to redirect email to an unintended domain and potentially obtain sensitive messages such as password reset links.

The vulnerability exists due to improper handling of Unicode encoding in PHPMailer::punyencodeAddress() when it interprets a UTF-8 domain as ISO-8859-1 under the default CharSet setting before converting it to Punycode. A remote attacker can supply an internationalized email address to misdirect delivery, even if the application has separately validated the intended domain.


3) Inefficient regular expression complexity (CVE-ID: N/A)

CWE-ID: CWE-1333 - Inefficient Regular Expression Complexity

CVSSv4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service by exhausting CPU resources.

The vulnerability exists due to catastrophic regular-expression backtracking in PHPMailer's html2text() method when processing HTML, causing CPU time to grow quadratically on certain inputs. A remote attacker can supply crafted HTML to an application that passes it to html2text() directly or through msgHTML() to cause a denial of service.


4) CRLF injection (CVE-ID: N/A)

CWE-ID: CWE-93 - Improper Neutralization of CRLF Sequences ('CRLF Injection')

CVSSv4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to inject unintended email headers that alter message metadata and may affect downstream processing.

The vulnerability exists due to improper neutralization of carriage returns and line feeds in PHPMailer's DKIM_Add() function when constructing the DKIM-Signature header. A remote attacker can abuse control over any one of the DKIM domain, selector, or identity settings in a host application with DKIM signing enabled to inject unintended email headers.


5) CRLF injection (CVE-ID: N/A)

CWE-ID: CWE-93 - Improper Neutralization of CRLF Sequences ('CRLF Injection')

CVSSv4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to inject arbitrary email headers, altering message metadata and potentially affecting downstream mail processing.

The vulnerability exists due to improper neutralization of CRLF sequences in PHPMailer::$Priority when generating the X-Priority header. A remote attacker can supply a crafted priority value to a host application that assigns remote input to the property without validation to insert an unintended message header.


6) CRLF injection (CVE-ID: N/A)

CWE-ID: CWE-93 - Improper Neutralization of CRLF Sequences ('CRLF Injection')

CVSSv4: 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]


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.


7) Improper Encoding or Escaping of Output (CVE-ID: N/A)

CWE-ID: CWE-116 - Improper Encoding or Escaping of Output

CVSSv4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to bypass email attachment filters that rely on filename extensions.

The vulnerability exists due to improper escaping of backslashes in PHPMailer's quotedString() function when formatting untrusted attachment names for MIME headers. A remote attacker can supply a malformed attachment name that introduces a second filename parameter in the Content-Type or Content-Disposition header to bypass extension-based filtering.


8) Improper Encoding or Escaping of Output (CVE-ID: N/A)

CWE-ID: CWE-116 - Improper Encoding or Escaping of Output

CVSSv4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to spoof email address headers and cause copies of messages to be delivered to unauthorized recipients.

The vulnerability exists due to improper escaping in PHPMailer's encodeHeader() function when formatting display names in SMTPUTF8 mode. A remote attacker can supply a crafted display name to inject addresses into an existing header, adding delivery recipients with the mail, sendmail, or qmail transport or spoofing the header without changing delivery recipients with the smtp transport.


Remediation

Install update from vendor's website.