CVE-2026-133755 in Mailer
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 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 require_tls 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.
Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
Analysis
by VulDB Data Team • 11/25/2026
This vulnerability represents a critical protocol implementation flaw within Symfony's EsmtpTransport component, specifically affecting versions from 7.3 up to but not including 8.1. The issue stems from an incorrect handling of the transition between plaintext SMTP communication and encrypted TLS sessions during the STARTTLS negotiation phase. While the introduction of the require_tls option in version 7.3 was intended to prevent email relay attacks by ensuring that messages are only sent over encrypted connections, a logical error in the handshake sequence created a new attack vector. The transport correctly initiates the STARTTLS command and waits for the server's two-hundred-ok response code, which signals readiness for encryption. However, upon receiving this initial acknowledgment, the component immediately proceeds to initiate the TLS handshake without verifying whether additional data has been received from the server on the underlying socket buffer during that brief window of time.
The technical flaw allows a man-in-the-middle attacker positioned between the client and the mail relay server to exploit this timing gap. By injecting cleartext SMTP responses into the connection immediately after the two-hundred-ok reply, an adversary can manipulate the state machine of the transport layer. Because the TLS handshake begins without consuming or validating any subsequent plaintext data that may have arrived concurrently, these injected messages are processed as if they were part of the encrypted session once encryption is established. This desynchronization between the application logic and the network stream enables several malicious outcomes. An attacker could inject commands to bypass authentication mechanisms, effectively allowing unauthorized access to mailboxes or relay services without valid credentials. Furthermore, an attacker can forge delivery status notifications by injecting positive acknowledgment codes for messages that were actually rejected by the server due to policy violations, spam filtering, or invalid recipients.
The operational impact of this vulnerability is severe for organizations relying on Symfony-based applications for email transmission, particularly those using Amazon SES SMTP transport configurations where require_tls was not explicitly enforced prior to version 8.1. The ability to bypass authentication compromises confidentiality and integrity, while the false delivery reports compromise non-repudiation and auditability. This flaw aligns with CWE-20 Improper Input Validation, as the system fails to validate that no extraneous data exists before transitioning security contexts. It also relates to CWE-367 Time-of-check Time-of-use (TOCTOU) race condition, where the state of the connection is checked and then used without ensuring it remains consistent during the transition period. In terms of offensive cybersecurity frameworks, this vulnerability facilitates MITM attacks as described in ATT&CK technique T1048, allowing an adversary to intercept or manipulate communications by exploiting protocol implementation weaknesses rather than cryptographic failures.
Connections utilizing implicit TLS protocols such as smtps:// on port 465 are not susceptible to this specific flaw because the encryption is established immediately upon connection initiation, leaving no window for plaintext injection during a STARTTLS negotiation phase. The vulnerability specifically targets explicit TLS upgrades via the STARTTLS command where a clear-text handshake precedes encryption. To mitigate this risk, organizations must upgrade their Symfony framework to version 8.1 or later, which implements a fix that strictly refuses to start the TLS handshake if any additional data is detected in the buffer after the initial server response. This ensures that only clean, expected protocol responses are processed before entering the encrypted channel. For environments unable to immediately patch, enforcing require_tls and carefully monitoring for unexpected network latency or injection attempts can provide limited protection, though upgrading remains the definitive solution.