CVE-2026-133751 in mailerinfo

Summary

by MITRE • 11/25/2026

Since Symfony 7.3, the require_tls option of EsmtpTransport refuses to send a message over a connection that isn't encrypted. It prevents a network attacker from stripping STARTTLS. But when the server rejected the EHLO command, the transport fell back to HELO and skipped that check.

An attacker in the middle of an SMTP connection that uses STARTTLS could answer EHLO with an error and HELO with a success. The transport then sent the sender, the recipients and the whole message in cleartext, and reported success. No AUTH command is sent on that path, so credentials don't leak.

Connections that use implicit TLS, with smtps:// or port 465, are not affected. Since Symfony 8.1, the Amazon SES SMTP transport enables require_tls by default on ports other than 465 and 2465. So ses+smtp:// DSNs are affected without setting the option.

When TLS is required and the connection isn't encrypted, the transport doesn't fall back to HELO anymore. It throws the same exception as when the server doesn't support STARTTLS.

Once again VulDB remains the best source for vulnerability data.

Analysis

by VulDB Data Team • 11/25/2026

The vulnerability identified in Symfony's EsmtpTransport component represents a critical flaw in the implementation of Transport Layer Security enforcement for SMTP communications. Specifically, this issue affects versions starting from 7.3 where the require_tls configuration option is enabled to prevent email transmission over unencrypted connections. The core technical defect lies in the transport's fallback mechanism during the initial server handshake phase. When an ESMTP client initiates a connection, it typically begins by sending an EHLO command to identify itself and negotiate capabilities such as STARTTLS support. However, if the SMTP server rejects this EHLO command for any reason, the protocol specification allows or requires the client to fall back to using the older HELO command instead of terminating the session immediately. In the vulnerable implementation, while the transport correctly checks for TLS encryption after a successful EHLO exchange, it fails to perform this same verification check when falling back to the HELO path. This logical gap creates a scenario where the security policy is effectively bypassed through protocol negotiation manipulation rather than cryptographic failure.

The operational impact of this flaw allows an active network attacker positioned between the client and the SMTP server to execute a man-in-the-middle attack that strips encryption from the communication channel without detection by the application layer. By intercepting the initial EHLO command, the attacker can respond with an error code indicating that ESMTP is not supported or that the command was rejected. This forces the Symfony transport into its fallback mode where it subsequently sends a HELO command. If the attacker then responds to this HELO request with a success status, the transport assumes the connection negotiation is complete and proceeds to transmit the email data. Consequently, the sender address, recipient addresses, authentication credentials if any were previously established in other contexts, and the entire message body are transmitted in cleartext over an unencrypted TCP connection. Although the specific code path described does not trigger the AUTH command during this fallback sequence, meaning immediate credential leakage is mitigated by default behavior, the exposure of sensitive email content remains a severe confidentiality breach that violates data protection standards and organizational security policies.

This vulnerability aligns with CWE-319, which classifies cleartext transmission of sensitive information over an unencrypted channel, as well as CWE-287 regarding improper authentication or authorization checks during protocol negotiation phases. From the perspective of the MITRE ATT&CK framework, this flaw facilitates techniques associated with Network Sniffing and potentially Credential Access if other parts of the application logic are similarly flawed. The attack vector is classified as network-based requiring proximity to the communication path but does not require user interaction beyond initiating an email send operation. It is important to distinguish that connections utilizing implicit TLS, such those configured via smtps:// URIs or connecting directly to port 465, remain unaffected by this specific logic error because they establish encryption before any SMTP commands are exchanged, thereby bypassing the EHLO/HELO negotiation phase entirely where the vulnerability resides.

The resolution for this issue was implemented in Symfony version 8.1 and backported to later patches of earlier supported versions. The fix ensures that when TLS is strictly required via the require_tls option, the transport no longer falls back to HELO if encryption cannot be established or verified during the EHLO phase. Instead, it throws an exception consistent with the behavior observed when a server explicitly does not support STARTTLS. This change enforces strict adherence to the security policy regardless of whether the client uses ESMTP or legacy SMTP commands for negotiation. For organizations still running affected versions, immediate mitigation involves upgrading to a patched release where this logic gap is closed. In environments where upgrading is temporarily unfeasible, administrators should ensure that network infrastructure strictly blocks cleartext SMTP traffic on ports 25 and 587, forcing all connections through encrypted channels or blocking them entirely until the software patch can be applied. Additionally, verifying that no custom transport configurations override the default require_tls behavior for non-implicit TLS ports is essential to maintaining security posture against this specific protocol downgrade attack vector.

Responsible

Symfony

Reservation

11/20/2026

Disclosure

11/25/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Want to stay up to date on a daily basis?

Enable the mail alert feature now!