# GHSA-C6X5-258C-G3F5: Mailer Trusts Replies That a Man in the Middle Injects Right After STARTTLS

- Database: GitHub
- Severity: CVSS 6.3 (Medium)
- Published: 2026-11-25
- Modified: 2026-11-25

## Tracked as

- [CVE-2026-133755](https://cve.now/CVE-2026-133755.md): Symfony Mailer auth bypass in SMTP transport via STARTTLS injection

## Affected versions

- symfony/mailer (Packagist): from 7.3, fixed in 7.4.24
- symfony/mailer (Packagist): from 8, fixed in 8.1.12
- symfony/symfony (Packagist): from 7.3, fixed in 7.4.24
- symfony/symfony (Packagist): from 8, fixed in 8.1.12

## Description

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

### Resolution

The transport now refuses to start TLS when the server sends data right after its answer to `STARTTLS`, and throws a `TransportException` instead.

The patches for this issue are available [here](https://github.com/symfony/symfony/commit/426b0f4c90daf0a16ee4fa41a8fd19005bb172ec) for branch 7.4 (and forward-ported to 8.1 and 8.2).

### Credits

We would like to thank Nicolas Grekas for reporting the issue and providing the fix.

## References

- https://github.com/symfony/symfony/security/advisories/GHSA-c6x5-258c-g3f5

Page: https://cve.now/GHSA-C6X5-258C-G3F5

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
