CVE-2026-45067: Email Header / SMTP Command Injection via CRLF in Symfony\Component\Mime\Address

Published May 20, 2026
·
Updated

Description

Symfony\Component\Mime\Address is the value-object every Symfony Mailer address (to/cc/bcc/from/reply-to) flows through; its constructor is documented as validating the address and throwing on invalid input, so developers treat it as a security boundary.

The constructor accepts email addresses whose local-part (the part before @) is an RFC-5322 quoted string containing raw \r\n bytes — e.g. "x\r\nBcc: attacker@evil"@example.com. The stored address is later emitted verbatim into (1) the rendered message headers and (2) SmtpTransport's MAIL FROM:<...> / RCPT TO:<...> protocol lines, turning the embedded CRLF into a new mail header and/or a new SMTP command.

Resolution

The Address constructor now rejects addresses containing line breaks.

The patch for this issue is available here for branch 5.4.

Credits

We would like to thank Claude Mythos Preview (via Project Glasswing) for reporting the issue and providing the fix.

Other sources

Description

Symfony\Component\Mime\Address is the value-object every Symfony Mailer address (to/cc/bcc/from/reply-to) flows through; its constructor is documented as validating the address and throwing on invalid input, so developers treat it as a security boundary.

The constructor accepts email addresses whose local-part (the part before @) is an RFC-5322 quoted string containing raw \r\n bytes, e.g. "x\r\nBcc: attacker@evil"@example.com. The stored address is later emitted verbatim into (1) the rendered message headers and (2) SmtpTransport's MAIL FROM:<...> / RCPT TO:<...> protocol lines, turning the embedded CRLF into a new mail header and/or a new SMTP command.

Resolution

The Address constructor now rejects addresses containing line breaks.

The patch for this issue is available here for branch 5.4.

Credits

We would like to thank Claude Mythos Preview (via Project Glasswing) for reporting the issue and providing the fix.

— GitHub

CVE-2026-45067: Email Header / SMTP Command Injection via CRLF in Symfony\Component\Mime\Address

— Packagist

Affected Software

45 affected componentsFixes available
composer/symfony/symfony>=8.0.0<8.0.12
8.0.12
composer/symfony/symfony>=7.0.0<7.4.12
7.4.12
composer/symfony/symfony>=6.0.0<6.4.40
6.4.40
composer/symfony/mime>=8.0.0<8.0.12
8.0.12
composer/symfony/mime>=7.0.0<7.4.12
7.4.12
composer/symfony/mime>=6.0.0<6.4.40
6.4.40
composer/symfony/symfony<5.4.52
5.4.52
composer/symfony/mime<5.4.52
5.4.52
composer/symfony/symfony>=2.0.0, <3.0.0
composer/symfony/symfony>=3.0.0, <4.0.0
composer/symfony/symfony>=4.0.0, <5.0.0
composer/symfony/symfony>=5.0.0, <5.1.0
composer/symfony/symfony>=5.1.0, <5.2.0
composer/symfony/symfony>=5.2.0, <5.3.0
composer/symfony/symfony>=5.3.0, <5.4.0
composer/symfony/symfony>=5.4.0, <5.4.52
5.4.52
composer/symfony/symfony>=6.0.0, <6.1.0
composer/symfony/symfony>=6.1.0, <6.2.0
composer/symfony/symfony>=6.2.0, <6.3.0
composer/symfony/symfony>=6.3.0, <6.4.0
composer/symfony/symfony>=6.4.0, <6.4.40
6.4.40
composer/symfony/symfony>=7.0.0, <7.1.0
composer/symfony/symfony>=7.1.0, <7.2.0
composer/symfony/symfony>=7.3.0, <7.4.0
composer/symfony/symfony>=7.4.0, <7.4.12
7.4.12
composer/symfony/symfony>=8.0.0, <8.0.12
8.0.12
composer/symfony/mime>=2.0.0, <3.0.0
composer/symfony/mime>=3.0.0, <4.0.0
composer/symfony/mime>=4.0.0, <5.0.0
composer/symfony/mime>=5.0.0, <5.1.0
composer/symfony/mime>=5.1.0, <5.2.0
composer/symfony/mime>=5.2.0, <5.3.0
composer/symfony/mime>=5.3.0, <5.4.0
composer/symfony/mime>=5.4.0, <5.4.52
5.4.52
composer/symfony/mime>=6.0.0, <6.1.0
composer/symfony/mime>=6.1.0, <6.2.0
composer/symfony/mime>=6.2.0, <6.3.0
composer/symfony/mime>=6.3.0, <6.4.0
composer/symfony/mime>=6.4.0, <6.4.40
6.4.40
composer/symfony/mime>=7.0.0, <7.1.0
composer/symfony/mime>=7.1.0, <7.2.0
composer/symfony/mime>=7.3.0, <7.4.0
composer/symfony/mime>=7.4.0, <7.4.12
7.4.12
composer/symfony/mime>=8.0.0, <8.0.12
8.0.12
debian/symfony
5.4.53+dfsg-0+deb12u16.4.41+dfsg-0+deb13u16.4.49+dfsg-0+deb13u17.4.22+dfsg-17.4.23+dfsg-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/symfony/symfony to a version that resolves this vulnerability.

    Fixed in 8.0.12
  2. Upgrade

    Upgrade composer/symfony/symfony to a version that resolves this vulnerability.

    Fixed in 7.4.12
  3. Upgrade

    Upgrade composer/symfony/symfony to a version that resolves this vulnerability.

    Fixed in 6.4.40
  4. Upgrade

    Upgrade composer/symfony/mime to a version that resolves this vulnerability.

    Fixed in 8.0.12
  5. Upgrade

    Upgrade composer/symfony/mime to a version that resolves this vulnerability.

    Fixed in 7.4.12
  6. Upgrade

    Upgrade composer/symfony/mime to a version that resolves this vulnerability.

    Fixed in 6.4.40
  7. Upgrade

    Upgrade composer/symfony/symfony to a version that resolves this vulnerability.

    Fixed in 5.4.52
  8. Upgrade

    Upgrade composer/symfony/mime to a version that resolves this vulnerability.

    Fixed in 5.4.52
  9. Upgrade

    Upgrade debian/symfony to a version that resolves this vulnerability.

    Fixed in 5.4.53+dfsg-0+deb12u1Fixed in 6.4.41+dfsg-0+deb13u1Fixed in 6.4.49+dfsg-0+deb13u1Fixed in 7.4.22+dfsg-1Fixed in 7.4.23+dfsg-1
  10. Upgrade

    Upgrade symfony/symfony to a version that resolves this vulnerability.

    Patch dc2dbd29211eb4ddc451373fa1374fb926e94604

Event History

May 20, 2026
Advisory Published
via Packagist·08:00 AM
Data Sourced
via Packagist·08:00 AM
DescriptionSeverityAffected Software
May 27, 2026
Advisory Published
via GitHub·08:42 PM
Data Sourced
via GitHub·08:42 PM
DescriptionWeaknessAffected Software
Jul 14, 2026
CVE Published
via MITRE·05:41 PM
Data Sourced
via MITRE·05:41 PM
DescriptionWeakness
Data Sourced
via NVD·06:17 PM
DescriptionSeverityWeakness

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2026-45067?

The severity of CVE-2026-45067 is rated at 71, indicating a significant risk.

2

How do I fix CVE-2026-45067?

To fix CVE-2026-45067, update to the latest version of Symfony Mailer where the issue is addressed.

3

What kind of vulnerability is CVE-2026-45067?

CVE-2026-45067 is a CRLF Injection vulnerability related to the Symfony Mailer address validation.

4

Which software is affected by CVE-2026-45067?

CVE-2026-45067 affects the Symfony components, specifically composer/symfony/symfony and composer/symfony/mime.

5

What potential impact does CVE-2026-45067 have?

CVE-2026-45067 may allow an attacker to inject control characters into email headers, potentially leading to security breaches.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203