Symfony: Argument Injection in SendmailTransport via Dash-Prefixed Recipient Address
symfony · symfony mailer
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| symfony/mailer Packagist |
|
|
symfony · symfony mailer
| Product | Affected | Fixed in |
|---|---|---|
| symfony/mailer Packagist |
|
|
| symfony/symfony Packagist |
|
|
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.
From the CVE record · GitHub_M
In SendmailTransport’s -t mode, recipient addresses are appended to the sendmail command line without an end-of-options separator. If an attacker can supply an address beginning with -, sendmail may interpret it as a command-line option instead of an address.
Teams using Packagist symfony/mailer or symfony/symfony should check installations on versions below 5.4.52, 6.0.0–6.4.39, 7.0.0–7.4.11, or 8.0.0–8.0.11.