{"id":"CVE-2026-24739","published":"2026-01-28T20:25:21Z","modified":"2026-01-29T18:01:36Z","title":"Symfony has incorrect argument escaping under MSYS2/Git Bash on Windows that can lead to destructive file operations","vendor":"symfony","product":"symfony","tier":"tail","description":{"text":"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 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00231,"percentile":0.14229,"provenance":"source"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"references":[{"url":"https://github.com/symfony/symfony/security/advisories/GHSA-r39x-jcww-82v6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/symfony/symfony/issues/62921","tags":["x_refsource_MISC"]},{"url":"https://github.com/symfony/symfony/pull/63164","tags":["x_refsource_MISC"]},{"url":"https://github.com/symfony/symfony/commit/35203939050e5abd3caf2202113b00cab5d379b3","tags":["x_refsource_MISC"]},{"url":"https://github.com/symfony/symfony/commit/ec154f6f95f8c60f831998ec4d246a857e9d179b","tags":["x_refsource_MISC"]}],"priority":{"score":7.3,"factors":[{"name":"EPSS percentile","points":2.85},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"symfony","affectedVersions":[{"vendor":"symfony","product":"symfony","versions":["< 5.4.51",">= 6.4.0, < 6.4.33",">= 7.3.0, < 7.3.11",">= 7.4.0, < 7.4.5",">= 8.0.0 , < 8.0.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-01-29T16:03:49.659737Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"symfony/process","vulnerableRanges":["<5.4.51",">=6.4, <6.4.33",">=7.3, <7.3.11",">=7.4, <7.4.5",">=8.0, <8.0.5"],"patched":["5.4.51","6.4.33","7.3.11","7.4.5","8.0.5"],"from":["GHSA-r39x-jcww-82v6"],"provenance":"source"},{"ecosystem":"Packagist","package":"symfony/symfony","vulnerableRanges":["<5.4.51",">=6.4, <6.4.33",">=7.3, <7.3.11",">=7.4, <7.4.5",">=8.0, <8.0.5"],"patched":["5.4.51","6.4.33","7.3.11","7.4.5","8.0.5"],"from":["GHSA-r39x-jcww-82v6"],"provenance":"source"}],"summary":{"text":"Symfony's Process component, on Windows, fails to correctly escape arguments containing characters such as = when PHP runs from an MSYS2-based shell like Git Bash and spawns native executables, leaving those arguments exposed to MSYS2 path conversion. An attacker who can influence the arguments passed to file-management commands (for example through repository paths, archive paths, or user-controlled configuration) can cause destructive operations on unintended paths, requiring local access, a user-initiated action, and an MSYS2-based execution environment.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:14:23Z"},"euvd":{"id":"EUVD-2026-4873","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-symfony-cve-2024-51736","parents":[{"from":"CVE-2024-51736","to":"CVE-2026-24739","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:symfony/process","fromFixed":"5.4.46","toFixed":"5.4.51","daysApart":448},{"kind":"version-step","provenance":"source","package":"Packagist:symfony/process","fromFixed":"6.4.14","toFixed":"6.4.33","daysApart":448},{"kind":"same-code","provenance":"machine","files":["src/Symfony/Component/Process/Process.php"],"commits":["https://github.com/symfony/symfony/commit/18ecd03eda3917fdf901a48e72518f911c64a1c9","https://github.com/symfony/symfony/commit/35203939050e5abd3caf2202113b00cab5d379b3","https://github.com/symfony/symfony/commit/ec154f6f95f8c60f831998ec4d246a857e9d179b"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2024-51736","published":"2024-11-06","fixed":"7.1.7","kev":false},{"cve":"CVE-2024-50342","published":"2024-11-06","fixed":"7.1.8","kev":false},{"cve":"CVE-2025-64500","published":"2025-11-12","fixed":"7.3.7","kev":false,"link":{"from":"CVE-2025-64500","to":"CVE-2026-24739","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:symfony/symfony","fromFixed":"5.4.50","toFixed":"5.4.51","daysApart":77},{"kind":"version-step","provenance":"source","package":"Packagist:symfony/symfony","fromFixed":"6.4.29","toFixed":"6.4.33","daysApart":77}]}},{"cve":"CVE-2026-24739","published":"2026-01-28","fixed":"8.0.5","kev":false},{"cve":"CVE-2026-45063","published":"2026-07-14","fixed":"8.0.12","kev":false},{"cve":"CVE-2026-45064","published":"2026-07-14","fixed":"8.0.12","kev":false},{"cve":"CVE-2026-45065","published":"2026-07-14","fixed":"8.0.12","kev":false}],"package":"Packagist:symfony/symfony"}}