NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

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

mediumCVSS 4.0 6.2GHSA-xx3c-qf5g-hc39

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

Published May 27, 2026

Affected packages

symfony/mailer

Ecosystem
Composer (PHP)
Affected
< 5.4.52
Fixed in
5.4.52
Check
composer show symfony/mailer

symfony/symfony

Ecosystem
Composer (PHP)
Affected
< 5.4.52
Fixed in
5.4.52
Check
composer show symfony/symfony

symfony/mailer

Ecosystem
Composer (PHP)
Affected
>= 6.0.0, < 6.4.40
Fixed in
6.4.40
Check
composer show symfony/mailer

symfony/mailer

Ecosystem
Composer (PHP)
Affected
>= 7.0.0, < 7.4.12
Fixed in
7.4.12
Check
composer show symfony/mailer

symfony/mailer

Ecosystem
Composer (PHP)
Affected
>= 8.0.0, < 8.0.12
Fixed in
8.0.12
Check
composer show symfony/mailer

symfony/symfony

Ecosystem
Composer (PHP)
Affected
>= 6.0.0, < 6.4.40
Fixed in
6.4.40
Check
composer show symfony/symfony

symfony/symfony

Ecosystem
Composer (PHP)
Affected
>= 7.0.0, < 7.4.12
Fixed in
7.4.12
Check
composer show symfony/symfony

symfony/symfony

Ecosystem
Composer (PHP)
Affected
>= 8.0.0, < 8.0.12
Fixed in
8.0.12
Check
composer show symfony/symfony

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Description

Symfony Mailer selects a transport via the MAILER_DSN 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.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Composer (PHP) vulnerabilities

All Composer (PHP) entries