Skip to content
Heist/ feed
Back to feed
Medium

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

Type: advisorySources: OSV

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Prior to versions 5.4.51, 6.4.33, 7.3.11, 7.4.5, and 8.0.5, 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 mis-handle unquoted arguments containing these characters. This can cause the spawned process to receive corrupted/truncated arguments compared to what Symfony intended. 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). Versions 5.4.51, 6.4.33, 7.3.11, 7.4.5, and 8.0.5 contains a patch for the issue. Some workarounds are available. Avoid running PHP/one's own tooling from MSYS2-based shells on Windows; prefer cmd.exe or PowerShell for workflows that spawn native exe

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-24739
Confirmed fixed CVEs
Not specified
Updated in this feed
8 Nov 2026, 01:43 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 28 Jan 2026, 20:25 UTC

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Prior to versions 5.4.51, 6.4.33, 7.3.11, 7.4.5, and 8.0.5, 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 mis-handle unquoted arguments containing these characters. This can cause the spawned process to receive corrupted/truncated arguments compared to what Symfony intended. 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). Versions 5.4.51, 6.4.33, 7.3.11, 7.4.5, and 8.0.5 contains a patch for the issue. Some workarounds are available. Avoid running PHP/one's own tooling from MSYS2-based shells on Windows; prefer cmd.exe or PowerShell for workflows that spawn native exe

osv:CVE-2026-24739
Complete source record
{
  "id": "04d8bcad744fd2544d2e119769d97e6f4de02498516aecd7f9d586107f935c0d",
  "url": "https://osv.dev/vulnerability/CVE-2026-24739",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Symfony has incorrect argument escaping under MSYS2/Git Bash on Windows that can lead to destructive file operations",
    "summary": "Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Prior to versions 5.4.51, 6.4.33, 7.3.11, 7.4.5, and 8.0.5, 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 mis-handle unquoted arguments containing these characters. This can cause the spawned process to receive corrupted/truncated arguments compared to what Symfony intended. 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). Versions 5.4.51, 6.4.33, 7.3.11, 7.4.5, and 8.0.5 contains a patch for the issue. Some workarounds are available. Avoid running PHP/one's own tooling from MSYS2-based shells on Windows; prefer cmd.exe or PowerShell for workflows that spawn native exe",
    "evidence": "osv:CVE-2026-24739",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-24739",
      "aliases": [
        "CVE-2026-24739",
        "GHSA-r39x-jcww-82v6"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/symfony/symfony",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "c5a2ee30e4049191b75cfdc16a0fc1eaeab9945a"
                },
                {
                  "introduced": "228a275ddcc1a4301fc8865945c0686b56658135"
                },
                {
                  "fixed": "f37cdc28f7efb22854981eb030d921fac174cb1a"
                },
                {
                  "introduced": "5babe8da13d379288ec141f9b5e325a1a6c39611"
                },
                {
                  "fixed": "452f1a3106c17a971672c43f6300cc12c99dad93"
                },
                {
                  "introduced": "25f2d564c9b8e93f1bfc1afa59c373e0409b599c"
                },
                {
                  "fixed": "f8669eb687795e4d501ec529c23371c8c239a2ef"
                },
                {
                  "introduced": "2e913a829cfbbf9cb38b321bdff1806b44b192eb"
                },
                {
                  "fixed": "93779efb243a5aede1d7a720a44f6dd303d96944"
                },
                {
                  "fixed": "35203939050e5abd3caf2202113b00cab5d379b3"
                },
                {
                  "fixed": "ec154f6f95f8c60f831998ec4d246a857e9d179b"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "5.4.51"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "6.4.0"
                      },
                      {
                        "fixed": "6.4.33"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.3.0"
                      },
                      {
                        "fixed": "7.3.11"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.4.0"
                      },
                      {
                        "fixed": "7.4.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "8.0.0"
                      },
                      {
                        "fixed": "8.0.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "35203939050e5abd3caf2202113b00cab5d379b3"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "ec154f6f95f8c60f831998ec4d246a857e9d179b"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v8.0.4",
            "v7.4.4",
            "v7.3.10",
            "v6.4.32",
            "v8.0.3",
            "v7.4.3",
            "v7.3.9",
            "v6.4.31",
            "v5.4.50",
            "v8.0.2",
            "v7.4.2",
            "v8.0.1",
            "v7.4.1",
            "v7.3.8",
            "v6.4.30",
            "v7.4.0",
            "v8.0.0",
            "v7.3.7",
            "v6.4.29",
            "v5.4.49",
            "v7.3.6",
            "v6.4.28",
            "v7.3.5",
            "v6.4.27",
            "v7.3.4",
            "v6.4.26",
            "v7.3.3",
            "v6.4.25",
            "v7.3.2",
            "v6.4.24",
            "v7.3.1",
            "v6.4.23",
            "v7.3.0",
            "v6.4.22",
            "v6.4.21",
            "v6.4.20",
            "v6.4.19",
            "v6.4.18",
            "v6.4.17",
            "v6.4.16",
            "v5.4.48",
            "v6.4.15",
            "v5.4.47",
            "v6.4.14",
            "v5.4.46",
            "v6.4.13",
            "v5.4.45",
            "v6.4.12",
            "v5.4.44",
            "v6.4.11",
            "v5.4.43",
            "v6.4.10",
            "v5.4.42",
            "v6.4.9",
            "v5.4.41",
            "v6.4.8",
            "v5.4.40",
            "v6.4.7",
            "v5.4.39",
            "v6.4.6",
            "v5.4.38",
            "v6.4.5",
            "v5.4.37",
            "v6.4.4",
            "v5.4.36",
            "v6.4.3",
            "v5.4.35",
            "v6.4.2",
            "v5.4.34",
            "v6.4.1",
            "v5.4.33",
            "v6.4.0",
            "v5.4.32",
            "v5.4.31",
            "v5.4.30",
            "v5.4.29",
            "v5.4.28",
            "v5.4.27",
            "v5.4.26",
            "v5.4.25",
            "v5.4.24",
            "v5.4.23",
            "v5.4.22",
            "v5.4.21",
            "v5.4.20",
            "v5.4.19",
            "v5.4.18",
            "v5.4.17",
            "v5.4.16",
            "v5.4.15",
            "v5.4.14",
            "v5.4.13",
            "v5.4.12",
            "v5.4.11",
            "v5.4.10",
            "v5.4.9",
            "v5.4.8",
            "v5.4.7",
            "v5.4.6",
            "v5.4.5",
            "v5.4.3",
            "v5.4.4",
            "v5.4.2",
            "v5.4.1",
            "v5.4.0",
            "v5.4.0-RC1",
            "v5.4.0-BETA3",
            "v5.4.0-BETA2",
            "v5.4.0-BETA1",
            "v5.3.0-BETA4",
            "v5.3.0-BETA3",
            "v5.3.0-BETA2",
            "v5.3.0-BETA1",
            "v5.2.0-BETA3",
            "v5.2.0-BETA2",
            "v5.2.0-BETA1",
            "v5.1.0-BETA1",
            "v5.0.0-RC1",
            "v5.0.0-BETA2",
            "v5.0.0-BETA1",
            "v4.3.0-BETA1",
            "v4.2.0-BETA2",
            "v4.2.0-BETA1",
            "v4.0.0-BETA4",
            "v4.0.0-BETA3",
            "v4.0.0-BETA2",
            "v4.0.0-BETA1",
            "v3.3.0-BETA1",
            "v3.2.0-RC1",
            "v3.2.0-BETA1",
            "v3.0.0",
            "v3.0.0-BETA1",
            "v2.6.0-BETA1",
            "v2.5.0-BETA1",
            "v2.5.0-BETA2",
            "v2.4.0-BETA2",
            "v2.4.0-BETA1",
            "v2.3.0-BETA2",
            "v2.3.0-BETA1",
            "v2.2.0-BETA2",
            "v2.2.0-BETA1",
            "v2.1.0",
            "v2.1.0-RC2",
            "v2.1.0-RC1",
            "v2.1.0-BETA4",
            "v2.1.0-BETA3",
            "v2.1.0-BETA2",
            "v2.1.0-BETA1",
            "v2.0.0",
            "v2.0.0-RC6",
            "v2.0.0-RC5",
            "v2.0.0-RC4",
            "v2.0.0-RC3",
            "v2.0.0-RC2",
            "v2.0.0-RC1",
            "v2.0.0BETA5",
            "v2.0.0BETA4",
            "v2.0.0BETA3",
            "v2.0.0BETA2",
            "v2.0.0BETA1",
            "vPR9",
            "vPR8",
            "v2.0.0PR8",
            "vPR6",
            "vPR5",
            "vPR4",
            "vPR3"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-24739.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:52.636439632Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/24xxx/CVE-2026-24739.json",
        "https://github.com/symfony/symfony/security/advisories/GHSA-r39x-jcww-82v6",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-24739",
        "https://github.com/symfony/symfony/issues/62921",
        "https://github.com/symfony/symfony/commit/35203939050e5abd3caf2202113b00cab5d379b3",
        "https://github.com/symfony/symfony/commit/ec154f6f95f8c60f831998ec4d246a857e9d179b",
        "https://github.com/symfony/symfony/pull/63164"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-88"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/24xxx/CVE-2026-24739.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-24739",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 521461,
  "published_at": "2026-01-28T20:25:21.5+00:00"
}