CVE-2026-133755: Mailer Trusts Replies That a Man in the Middle Injects Right After STARTTLS
Since Symfony 7.3, the requiretls option of EsmtpTransport refuses to send a message over a connection that isn't encrypted. It prevents a network attacker from stripping STARTTLS. But after the server's 220 reply to STARTTLS, the transport started the TLS handshake without checking whether more data had already arrived.
An attacker in the middle of the connection could add cleartext replies right after the 220. The transport then read them as if they came from the encrypted session. The attacker could make the transport skip AUTH, or report a message as sent while the server had rejected it.
Connections that use implicit TLS, with smtps:// or port 465, are not affected. Since Symfony 8.1, the Amazon SES SMTP transport enables requiretls by default on ports other than 465 and 2465. So ses+smtp:// DSNs are affected without setting the option.
The transport now refuses to start TLS when the server sends data right after its answer to STARTTLS, and throws a TransportException instead.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed by default?
Amazon SES SMTP transport connections configured with ses+smtp:// are affected without explicitly setting the option when using Symfony 8.1 or later on ports other than 465 and 2465, because require_tls is enabled by default there. Other deployments require use of STARTTLS through EsmtpTransport for this condition to apply.
What does an attacker need to exploit this?
The attacker must be positioned in the network path between the mailer and SMTP server. They must inject cleartext SMTP replies immediately after the server's 220 response to STARTTLS, before the TLS handshake is processed.
What is the practical impact of a successful attack?
The injected replies can be treated as though they were received inside the encrypted session. This can cause the transport to skip SMTP authentication or report that a message was sent even though the server rejected it.
What can be done if an update cannot be applied immediately?
Use implicit TLS instead of STARTTLS, such as an smtps:// connection or port 465. These connection modes are not affected.
How can this issue be recognized after applying the fix?
The corrected transport refuses to begin TLS if the server sends additional data immediately after its STARTTLS response. It raises a TransportException instead of processing that data as part of the encrypted session.