CVE-2026-45068·PHP vulnerability
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.
- Severity
- high
- Software
- PHP
- Fixed in
- 8.0.12
- Published
- 2026-07-14
Affected versions
From: 8.0.0
Until: 8.0.12
Fixed in: 8.0.12
How to fix this CVE
Update Symfony's SendmailTransport component to version 8.0.12 or later to remediate a command injection vulnerability affecting email delivery. The vulnerability allows specially crafted recipient email addresses (those beginning with a dash) to be interpreted as sendmail command-line options, potentially leading to unauthorized email operations. Ensure your PHP environment and all Symfony dependencies are updated through your package manager.
sudo dnf update php symfonyDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check installed PHP/Symfony version: php -v && composer show symfony/symfony 2>/dev/null || grep -r '"version"' vendor/symfony/symfony/composer.json 2>/dev/null
- Step 2: Verify SendmailTransport is in use by searching your codebase: grep -r 'SendmailTransport' app/ src/ config/ --include='*.php' --include='*.yaml'
- Step 3: Search application and mail logs for email addresses beginning with hyphens as recipients: grep -E '(to|recipient).*-[a-zA-Z]' /var/log/mail.log /var/log/syslog app/var/log/*.log 2>/dev/null
- Step 4: Confirm the patch by checking the Symfony version matches 8.0.12 or later: composer show symfony/symfony | grep -i version
FAQ
What is CVE-2026-45068?
CVE-2026-45068 is a command injection vulnerability in Symfony's SendmailTransport class where recipient email addresses prefixed with a hyphen are not properly escaped, allowing them to be interpreted as sendmail command-line options instead of email addresses.
Is CVE-2026-45068 being actively exploited?
No, this vulnerability is not currently listed on the CISA Known Exploited Vulnerabilities catalog and no public exploits are available, though the high CVSS score warrants prompt patching.
What versions of PHP are affected by CVE-2026-45068?
Symfony framework versions 8.0.0 through 8.0.11 are affected; versions 5.4.52, 6.4.40, 7.4.12, and 8.0.12 contain the fix.
How do I check if my server is vulnerable to CVE-2026-45068?
Run 'composer show symfony/symfony' and check if the version is between 8.0.0 and 8.0.11; if SendmailTransport is not explicitly disabled in configuration, your application is vulnerable.
Does Defensia detect CVE-2026-45068?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Symfony is installed on a monitored server, CVE-2026-45068 will appear in your dashboard with remediation steps.
Related PHP CVEs
References
- https://github.com/symfony/symfony/commit/c45144862dc289d03952f41f6078174089a3afc6
- https://github.com/symfony/symfony/releases/tag/v5.4.52
- https://github.com/symfony/symfony/releases/tag/v6.4.40
- https://github.com/symfony/symfony/releases/tag/v7.4.12
- https://github.com/symfony/symfony/releases/tag/v8.0.12
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-45068. Free for 1 server.
Get started free