CVE-2026-45068 — Symfony has an Argument Injection in symfony/symfony
Symfony has an Argument Injection in SendmailTransport via Dash-Prefixed Recipient Address
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.52%). Schedule for your next planned update.
Does your project use an affected symfony/symfony version?
Paste your composer.lock to check it for CVE-2026-45068 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published May 27, 2026 (184 days ago).
- Last revised September 10, 2026 — 105 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "symfony/symfony:^7.4.12"
composer require "symfony/symfony:^6.4.40"
composer require "symfony/symfony:^8.0.12"
composer require "symfony/symfony:^5.4.52"
composer require "symfony/mailer:^8.0.12"
composer require "symfony/mailer:^7.4.12"
composer require "symfony/mailer:^5.4.52"
composer require "symfony/mailer:^6.4.40"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (8)
Affects 1 ecosystem: Packagist (2).
| Package | Fixed In |
|---|---|
| symfony/symfony Packagist · Affected: v7.0.0, v7.0.1, v7.0.10, v7.0.2 (+66 more) | 7.4.12 |
| symfony/symfony Packagist · Affected: v6.0.0, v6.0.1, v6.0.10, v6.0.11 (+116 more) | 6.4.40 |
| symfony/symfony Packagist · Affected: v8.0.0, v8.0.1, v8.0.10, v8.0.11 (+8 more) | 8.0.12 |
| symfony/symfony Packagist · Affected: 2.0.4, 2.0.5, 2.0.6, 2.0.7 (+627 more) | 5.4.52 |
| symfony/mailer Packagist · Affected: v8.0.0, v8.0.3, v8.0.4, v8.0.6 (+1 more) | 8.0.12 |
| symfony/mailer Packagist · Affected: v7.0.0, v7.0.2, v7.0.3, v7.0.4 (+36 more) | 7.4.12 |
| symfony/mailer Packagist · Affected: v4.3.0, v4.3.0-BETA1, v4.3.0-BETA2, v4.3.0-RC1 (+135 more) | 5.4.52 |
| symfony/mailer Packagist · Affected: v6.0.0, v6.0.1, v6.0.10, v6.0.11 (+64 more) | 6.4.40 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-88
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.1 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U
References
- https://github.com/symfony/symfony/security/advisories/GHSA-xx3c-qf5g-hc39WEB
- https://github.com/symfony/symfony/commit/c45144862dc289d03952f41f6078174089a3afc6WEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/mailer/CVE-2026-45068.yamlWEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2026-45068.yamlWEB
- https://github.com/symfony/symfonyPACKAGE
- https://symfony.com/cve-2026-45068WEB
Frequently Asked Questions
- What is CVE-2026-45068?
- Symfony has an Argument Injection in SendmailTransport via Dash-Prefixed Recipient Address. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 8.1/10).
- How do I check if my project is affected by CVE-2026-45068?
- CVE-2026-45068 affects symfony/symfony and symfony/mailer. It has a 0.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-45068 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 37.9% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2017-11365CRITICAL
Symfony Incorrect Access Control
- CVE-2019-11325CRITICAL
Improper Input Validation in Symfony
- CVE-2016-2403CRITICAL
Symfony Authentication Bypass
- CVE-2019-10913CRITICAL
Invalid HTTP method overrides allow possible XSS or other attacks in Symfony
- CVE-2024-51736HIGH
Symfony vulnerable to command execution hijack on Windows with Process class
- CVE-2026-108082HIGH
Symfony: ReDoS in HeaderUtils::split() Reachable Through the Cache-Control Request Header
- CVE-2014-6072HIGH
Symfony Cross-Site Request Forgery vulnerability in the Web Profiler
- CVE-2026-24739MEDIUM
Symfony's incorrect argument escaping under MSYS2/Git Bash can lead to destructive file operations on Windows