Skip to main content

CVE-2026-24739 — Vulnerability in symfony/symfony — CVE Details

MEDIUM

Symfony's incorrect argument escaping under MSYS2/Git Bash can lead to destructive file operations on Windows

Published January 28, 2026Updated September 10, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.24%). 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-24739 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.

Check my composer.lock

Summary

Summary

The Symfony Process component did not correctly treat some characters (notably =) as “special” when escaping arguments on Windows. When PHP is executed from an MSYS2-based environment (e.g. Git Bash) and Symfony Process spawns native Windows executables, MSYS2’s argument/path conversion can mishandle unquoted arguments containing these characters.

This can cause the spawned process to receive corrupted/truncated arguments compared to what Symfony intended.

Impact

If an application (or tooling such as Composer scripts) uses Symfony Process to invoke file-management commands (e.g. rmdir, del, etc.) with a path argument containing =, the MSYS2 conversion layer may alter the argument at runtime. In affected setups this can result in operations being performed on an unintended path, up to and including deletion of the contents of a broader directory or drive.

The issue is particularly relevant when untrusted input can influence process arguments (directly or indirectly, e.g. via repository paths, extracted archive paths, temporary directories, or user-controlled configuration).

Resolution

Upgrade to a Symfony release that includes the fix from symfony/symfony#63164 (which updates Windows argument escaping to ensure arguments containing = and other MSYS2-sensitive characters are properly quoted/escaped). The patch for branch 5.4 is available at https://github.com/symfony/symfony/commit/ec154f6f95f8c60f831998ec4d246a857e9d179b

Workarounds / Mitigations

Avoid running PHP/your tooling from MSYS2-based shells on Windows; prefer cmd.exe or PowerShell for workflows that spawn native executables. Avoid passing paths containing = (and similar MSYS2-sensitive characters) to Symfony Process when operating under Git Bash/MSYS2. Where applicable, configure MSYS2 to disable or restrict argument conversion (e.g. via MSYS2_ARG_CONV_EXCL), understanding this may affect other tooling behavior.

Advisory Timeline

  • First published January 28, 2026 (302 days ago).
  • Last revised September 10, 2026 — 224 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update symfony/symfony to 8.0.5 or later
composer require "symfony/symfony:^8.0.5"
Composer
Update symfony/symfony to 6.4.33 or later
composer require "symfony/symfony:^6.4.33"
Composer
Update symfony/symfony to 7.4.5 or later
composer require "symfony/symfony:^7.4.5"
Composer
Update symfony/symfony to 5.4.51 or later
composer require "symfony/symfony:^5.4.51"
Composer
Update symfony/symfony to 7.3.11 or later
composer require "symfony/symfony:^7.3.11"
Composer
Update symfony/process to 7.4.5 or later
composer require "symfony/process:^7.4.5"
Composer
Update symfony/process to 5.4.51 or later
composer require "symfony/process:^5.4.51"
Composer
Update symfony/process to 6.4.33 or later
composer require "symfony/process:^6.4.33"
Composer
Update symfony/process to 8.0.5 or later
composer require "symfony/process:^8.0.5"
Composer
Update symfony/process to 7.3.11 or later
composer require "symfony/process:^7.3.11"

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (10)

Affects 1 ecosystem: Packagist (2).

PackageFixed In
symfony/symfony Packagist · Affected: v8.0.0, v8.0.0-BETA1, v8.0.0-BETA2, v8.0.0-RC1 (+6 more)8.0.5
symfony/symfony Packagist · Affected: v6.4.0, v6.4.0-BETA1, v6.4.0-BETA2, v6.4.0-BETA3 (+34 more)6.4.33
symfony/symfony Packagist · Affected: v7.4.0, v7.4.0-BETA1, v7.4.0-BETA2, v7.4.0-RC1 (+6 more)7.4.5
symfony/symfony Packagist · Affected: 2.0.4, 2.0.5, 2.0.6, 2.0.7 (+626 more)5.4.51
symfony/symfony Packagist · Affected: v7.3.0, v7.3.0-BETA1, v7.3.0-BETA2, v7.3.0-RC1 (+10 more)7.3.11
symfony/process Packagist · Affected: v7.4.0, v7.4.0-BETA1, v7.4.0-RC1, v7.4.3 (+1 more)7.4.5
symfony/process Packagist · Affected: 2.0.4, 2.0.5, 2.0.6, 2.0.7 (+540 more)5.4.51
symfony/process Packagist · Affected: v6.4.0, v6.4.0-BETA1, v6.4.0-BETA2, v6.4.0-BETA3 (+18 more)6.4.33
symfony/process Packagist · Affected: v8.0.0, v8.0.0-BETA1, v8.0.0-RC1, v8.0.3 (+1 more)8.0.5
symfony/process Packagist · Affected: v7.3.0, v7.3.0-BETA1, v7.3.0-RC1, v7.3.10 (+3 more)7.3.11

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 6.3 score means for each attack dimension.

Attack Vector
Local
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:H

Frequently Asked Questions

What is CVE-2026-24739?
Symfony's incorrect argument escaping under MSYS2/Git Bash can lead to destructive file operations on Windows. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.3/10).
How do I check if my project is affected by CVE-2026-24739?
CVE-2026-24739 affects symfony/symfony and symfony/process. It has a 0.2% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-24739 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
6.3

Exploitation requires specific conditions, or the impact is limited.

EPSS Score (30-day exploit probability)
0.24%
EPSS percentile: 9.4

This is a below-median EPSS score — only 9.4% 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

GHSA-r39x-jcww-82v6

Related CVEs

  • CVE-2018-11407
    CRITICAL

    Symfony Authentication Bypass

  • CVE-2019-18889
    CRITICAL

    Symfony Unsafe Cache Serialization Could Enable RCE

  • CVE-2026-109413
    HIGH

    Symfony: Unbounded Recursion in the YAML Inline Lexer Lets a Single Document Crash the Process

  • CVE-2025-64500
    HIGH

    Symfony's incorrect parsing of PATH_INFO can lead to limited authorization bypass

  • CVE-2026-45075
    HIGH

    Symfony's HEAD Request Bypasses methods: ['GET'] Filter in #[IsGranted] / #[IsSignatureValid] / #[IsCsrfTokenValid]

  • CVE-2026-45754
    MEDIUM

    Symfony's Mailjet Mailer Webhook Parser Never Verifies the Configured Secret — Unauthenticated Webhook Event Injection

  • CVE-2026-45073
    MEDIUM

    Symfony Vulnerable to SQL Injection in PdoAdapter::doClear() via Unsanitized $prefix

  • CVE-2026-47767
    MEDIUM

    SymfonyRuntime CVE-2024-50340 Patch Bypass: Web Requests Can Still Set APP_ENV/APP_DEBUG via parse_str/SAPI Argv Mismatch

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my composer.lock