Advisory

GHSA-qpmx-3rfj-7rhv

Also known as: CVE-2026-45067

Summary

Symfony has Email Header / SMTP Command Injection via CRLF in Symfony\Component\Mime\Address

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-05-27 20:42 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

symfony/mime

Packagist · All systems

Affected

  • introduced 0, fixed 5.4.52 (ecosystem)

Fixed versions

5.4.52

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 0, fixed 5.4.52 (ecosystem)

Fixed versions

5.4.52

Fix

The export has no generic command for this ecosystem.

symfony/mime

Packagist · All systems

Affected

  • introduced 6.0.0, fixed 6.4.40 (ecosystem)

Fixed versions

6.4.40

Fix

The export has no generic command for this ecosystem.

symfony/mime

Packagist · All systems

Affected

  • introduced 7.0.0, fixed 7.4.12 (ecosystem)

Fixed versions

7.4.12

Fix

The export has no generic command for this ecosystem.

symfony/mime

Packagist · All systems

Affected

  • introduced 8.0.0, fixed 8.0.12 (ecosystem)

Fixed versions

8.0.12

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 6.0.0, fixed 6.4.40 (ecosystem)

Fixed versions

6.4.40

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 7.0.0, fixed 7.4.12 (ecosystem)

Fixed versions

7.4.12

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 8.0.0, fixed 8.0.12 (ecosystem)

Fixed versions

8.0.12

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences