Mailer Trusts Replies That a Man in the Middle Injects Right After STARTTLS
- State
- Published
- Severity
- 6.3 Medium
- Published
- Nov 25, 2026
- Updated
- Nov 25, 2026
- Reserved
- Nov 20, 2026
Description
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.
| Product | Versions |
|---|---|
| symfony/mailer Symfony | 7.3.0 to before 7.4.24 Affected8.0.0 to before 8.1.12 Affected |
| symfony/symfony Symfony | 7.3.0 to before 7.4.24 Affected8.0.0 to before 8.1.12 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 6.3 Medium | Symfony |
Weaknesses
- CWE-924 Improper Enforcement of Message Integrity During Transmission in a Communication Channel
References
- CVE-2026-133755Vendor Advisory
- GHSA-c6x5-258c-g3f5Vendor Advisory
- https://github.com/symfony/symfony/commit/426b0f4c90daf0a16ee4fa41a8fd19005bb172ecPatch
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.