CVE-2024-51736 Command execution hijack on Windows with Process class in symfony/process
Attackers can hijack command execution on Windows by placing a malicious cmd.exe in the working directory, affecting applications using the Symfony Process component.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-51736?
CVE-2024-51736 is a command injection vulnerability in Sensiolabs Symfony, published on 6 Nov 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
Symphony process is a module for the Symphony PHP framework which executes commands in sub-processes. 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. This issue has been addressed in release versions 5.4.46, 6.4.14, and 7.1.7. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Weakness: CWE-77
Which versions are affected by CVE-2024-51736?
12 open source packages ship an affected version, including symfony/process and symfony/symfony. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
symfony/process Packagist | All versions | 5.4.46 |
symfony/process Packagist | All versions | 5.4.46 |
symfony/process Packagist | From 6.0.0 | 6.4.14 |
symfony/process Packagist | From 6.0.0 | 6.4.14 |
symfony/process Packagist | From 7.0.0 | 7.1.7 |
symfony/process Packagist | From 7.0.0 | 7.1.7 |
6 more packages
symfony/symfony Packagist | All versions | 5.4.46 |
symfony/symfony Packagist | All versions | 5.4.46 |
symfony/symfony Packagist | From 6.0.0 | 6.4.14 |
symfony/symfony Packagist | From 6.0.0 | 6.4.14 |
symfony/symfony Packagist | From 7.0.0 | 7.1.7 |
symfony/symfony Packagist | From 7.0.0 | 7.1.7 |
Products include Sensiolabs Symfony.
How do I fix CVE-2024-51736?
Upgrade symfony/process to a fixed version for your release line: 5.4.46, 6.4.14 or 7.1.7.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2024-51736 being exploited?
There is no known exploitation of CVE-2024-51736 in the wild and no public exploit code.
Other vulnerabilities in Sensiolabs Symfony
Sources
Also known as CLSA-2025-1761785573, CLSA-2025-1761785574, GHSA-qq5c-677p-737q.