Loading...
Skip to main content

CVE-2024-51736 — Vulnerability in symfony/symfony — CVE Details

HIGH

Symfony vulnerable to command execution hijack on Windows with Process class

Published November 6, 2024Updated September 10, 2026Source: osv

Summary

### Description On Windows, when an executable file named `cmd.exe` is located in the current working directory it will be called by the `Process` class when preparing command arguments, leading to possible hijacking. ### Resolution The `Process` class now uses the absolute path to `cmd.exe`. The patch for this issue is available [here](https://github.com/symfony/symfony/commit/18ecd03eda3917fdf901a48e72518f911c64a1c9) for branch 5.4. ### Credits We would like to thank Jordi Boggiano for reporting the issue and Nicolas Grekas for providing the fix.

Advisory Timeline

  • First published November 6, 2024 (705 days ago).
  • Last revised September 10, 2026 — 673 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update symfony/symfony to 7.1.7 or later
composer require "symfony/symfony:^7.1.7"
Composer
Update symfony/process to 7.1.7 or later
composer require "symfony/process:^7.1.7"
Composer
Update symfony/symfony to 5.4.46 or later
composer require "symfony/symfony:^5.4.46"
Composer
Update symfony/symfony to 6.4.14 or later
composer require "symfony/symfony:^6.4.14"
Composer
Update symfony/process to 6.4.14 or later
composer require "symfony/process:^6.4.14"
Composer
Update symfony/process to 5.4.46 or later
composer require "symfony/process:^5.4.46"

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (6)

Affects 1 ecosystem: packagist (2).

PackageEcosystemAffectedFixed In
symfony/symfony
packagist
v7.0.0, v7.0.1, v7.0.10, v7.0.2 (+16 more)7.1.7
symfony/process
packagist
v7.0.0, v7.0.2, v7.0.3, v7.0.4 (+9 more)7.1.7
symfony/symfony
packagist
2.0.4, 2.0.5, 2.0.6, 2.0.7 (+621 more)5.4.46
symfony/symfony
packagist
v6.0.0, v6.0.1, v6.0.10, v6.0.11 (+90 more)6.4.14
symfony/process
packagist
v6.0.0, v6.0.11, v6.0.19, v6.0.2 (+39 more)6.4.14
symfony/process
packagist
2.0.4, 2.0.5, 2.0.6, 2.0.7 (+538 more)5.4.46

Vulnerability Classification

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

CVSS Score Breakdown

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

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

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

Frequently Asked Questions

What is CVE-2024-51736?
Symfony vulnerable to command execution hijack on Windows with Process class This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.4/10).
How do I check if my project is affected by CVE-2024-51736?
CVE-2024-51736 affects symfony/symfony and symfony/process. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-51736 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.4

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-qq5c-677p-737q

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies