Incident response on call, 24/7: +385 98 1900 984NewIR Retainer: a team on contract before an attack
HR · EN
Medium 6.3CVE-2026-133751

Mailer's require_tls Can Be Bypassed by a Man in the Middle

Published 25/11/2026 · Updated 25/11/2026 · symfony/mailer

Original 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 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.

Affected products and versions

Symfony symfony/mailer7.3.0 – < 7.4.24 · 8.0.0 – < 8.1.12Fixed in: 7.4.24 · 8.1.12
Symfony symfony/symfony7.3.0 – < 7.4.24 · 8.0.0 – < 8.1.12Fixed in: 7.4.24 · 8.1.12

CVSS vector, explained

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

Attack vector
Network (from the internet)
Attack complexity
Low
Attack requirements
Present
Privileges required
None (no login)
User interaction
Not required
Confidentiality
Low impact
Integrity
None
Availability
None

Weakness type (CWE)

  • CWE-319 Cleartext Transmission of Sensitive Information

References

Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Summaries are AI-written under strict rules; always check the vendor's official advisory.