Description
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.
Published: 2026-07-14
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Prior to Symfony versions 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. Consequently, an address starting with a dash could be misinterpreted as a sendmail command‑line option rather than a recipient. This allows an application that accepts untrusted recipient addresses to inject sendmail options, potentially altering message delivery or mailer behavior. The flaw is classified as CWE‑88 and is addressed by applying the patch in the mentioned releases, which enforce the separator or sanitize such addresses.

Affected Systems

Symfony Mailer and Symfony Framework versions up to 5.4.51, 6.4.39, 7.4.11, and 8.0.11 are vulnerable. The issue is resolved in Symfony 5.4.52, 6.4.40, 7.4.12, and 8.0.12 and later releases. Any installation of the affected products that still uses the legacy sendmail transport in –t mode is at risk.

Risk and Exploitability

The severity score of 8.7 marks this as a high‑risk flaw, but the EPSS score is below 1%, implying a low probability of real‑world exploitation at the current time. The vulnerability is not listed in the CISA KEV catalog, suggesting no known active exploitation campaigns. Based on the description, it is inferred that the attacker must be able to supply recipient addresses containing leading dashes and that the application runs with privileges sufficient to invoke sendmail. The likely attack vector is an application that uses sendmail in –t mode and accepts unvalidated recipient addresses from user input. The flaw can be leveraged to manipulate sendmail options and potentially cause undesired mail delivery or system behavior.

Generated by OpenCVE AI on July 31, 2026 at 05:40 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Symfony Mailer and Symfony Framework to the latest patched release (5.4.52, 6.4.40, 7.4.12, or 8.0.12) where SendmailTransport enforces a -- end‑of‑options separator and rejects or sanitizes recipient addresses that start with a dash.
  • If an immediate upgrade is not possible, use an alternative transport that does not expose command‑line options to untrusted input.
  • Sanitize or reject recipient addresses that start with a dash before they are passed to sendmail to prevent option injection.

Generated by OpenCVE AI on July 31, 2026 at 05:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DSA Debian DSA DSA-6312-1 symfony security update
Debian DSA Debian DSA DSA-6317-1 symfony security update
Github GHSA Github GHSA GHSA-xx3c-qf5g-hc39 Symfony has an Argument Injection in SendmailTransport via Dash-Prefixed Recipient Address
History

Mon, 27 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
First Time appeared Symfony
Symfony mailer
Symfony symfony
Vendors & Products Symfony
Symfony mailer
Symfony symfony

Wed, 15 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 14 Jul 2026 19:45:00 +0000

Type Values Removed Values Added
Description 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.
Title Symfony: Argument Injection in SendmailTransport via Dash-Prefixed Recipient Address
Weaknesses CWE-88
References
Metrics cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-15T13:24:09.154Z

Reserved: 2026-05-08T18:45:10.096Z

Link: CVE-2026-45068

cve-icon Vulnrichment

Updated: 2026-07-15T13:24:04.448Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T05:45:03Z

Weaknesses
  • CWE-88

    Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')