CVE-2026-45068: Symfony: Argument Injection in SendmailTransport via Dash-Prefixed Recipient Address

Published May 27, 2026
·
Updated

Description

Symfony Mailer selects a transport via the MAILERDSN environment variable / configuration (e.g. smtp://..., sendmail://..., native://default). SendmailTransport invokes the local sendmail binary and supports two modes: -bs (speak SMTP over stdin: the default) and -t (read the message on stdin, pass recipients as command-line arguments).

In -t mode, recipient addresses are appended to the sendmail command line without a -- end-of-options separator. A recipient address beginning with - (which Symfony\Component\Mime\Address accepts as valid) is therefore interpreted by sendmail as a command-line option rather than an address.

Resolution

The SendmailTransport transport now ensure -- is set before the list of recipients.

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

Credits

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

Other sources

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Prior to 5.4.52, 6.4.40, 7.4.12, and 8.0.12, SendmailTransport in -t mode appended recipient addresses to the sendmail command line without a -- end-of-options separator, allowing an address beginning with - to be interpreted as a sendmail command-line option instead of an address. This issue is fixed in versions 5.4.52, 6.4.40, 7.4.12, and 8.0.12.

MITRE

Affected Software

12 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/mailer>=8.0.0<8.0.12
8.0.12
composer/symfony/mailer>=7.0.0<7.4.12
7.4.12
composer/symfony/mailer>=6.0.0<6.4.40
6.4.40
composer/symfony/symfony<5.4.52
5.4.52
composer/symfony/mailer<5.4.52
5.4.52
SensioLabs Symfony<5.4.52
SensioLabs Symfony>=6.0.0<6.4.40
SensioLabs Symfony>=7.0.0<7.4.12
SensioLabs Symfony>=8.0.0<8.0.12

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/mailer to a version that resolves this vulnerability.

    Fixed in 8.0.12
  5. Upgrade

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

    Fixed in 7.4.12
  6. Upgrade

    Upgrade composer/symfony/mailer 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/mailer to a version that resolves this vulnerability.

    Fixed in 5.4.52
  9. Upgrade

    Upgrade Symfony Mailer (SendmailTransport) to a version that resolves this vulnerability.

    Fixed in 5.4.52
  10. Upgrade

    Upgrade Symfony Mailer (SendmailTransport) to a version that resolves this vulnerability.

    Fixed in 6.4.40
  11. Upgrade

    Upgrade Symfony Mailer (SendmailTransport) to a version that resolves this vulnerability.

    Fixed in 7.4.12
  12. Upgrade

    Upgrade Symfony Mailer (SendmailTransport) to a version that resolves this vulnerability.

    Fixed in 8.0.12
  13. Configuration

    After upgrading, ensure SendmailTransport invokes sendmail with `--` set before appending the recipient addresses to the sendmail command line when running in `-t` mode, so dash-prefixed recipient addresses are not interpreted as sendmail command-line options.

    Symfony Mailer (SendmailTransport) sendmail command-line recipients delimiter = -- (end-of-options separator) inserted before recipient list in -t mode

Event History

May 27, 2026
Advisory Published
via GitHub·08:46 PM
Data Sourced
via GitHub·08:46 PM
DescriptionWeaknessAffected Software
Jul 14, 2026
CVE Published
via MITRE·07:02 PM
Data Sourced
via MITRE·07:02 PM
DescriptionWeakness
Data Sourced
via NVD·08:17 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-45068?

CVE-2026-45068 has a risk severity score of 37.

2

What impact does CVE-2026-45068 have on Symfony Mailer?

CVE-2026-45068 affects the transport selection in Symfony Mailer when using the `MAILER_DSN` variable.

3

How can I mitigate CVE-2026-45068?

To mitigate CVE-2026-45068, ensure you are using a patched version of the Symfony Mailer package.

4

Which versions of Symfony Mailer are affected by CVE-2026-45068?

CVE-2026-45068 affects versions prior to the security fix for the Symfony Mailer component.

5

How do I update Symfony Mailer to address CVE-2026-45068?

You can update Symfony Mailer using Composer with the command `composer update symfony/mailer`.

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