CVE-2024-51736 — Vulnerability in symfony/symfony — CVE Details
Symfony vulnerable to command execution hijack on Windows with Process class
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.68%). Schedule for your next planned update.
Does your project use an affected symfony/symfony version?
Paste your composer.lock to check it for CVE-2024-51736 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.
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 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 (751 days ago).
- Last revised September 10, 2026 — 673 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "symfony/symfony:^7.1.7"
composer require "symfony/process:^7.1.7"
composer require "symfony/symfony:^5.4.46"
composer require "symfony/symfony:^6.4.14"
composer require "symfony/process:^6.4.14"
composer require "symfony/process:^5.4.46"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (6)
Affects 1 ecosystem: Packagist (2).
| Package | Fixed In |
|---|---|
| symfony/symfony Packagist · Affected: v7.0.0, v7.0.1, v7.0.10, v7.0.2 (+16 more) | 7.1.7 |
| symfony/process Packagist · Affected: v7.0.0, v7.0.2, v7.0.3, v7.0.4 (+9 more) | 7.1.7 |
| symfony/symfony Packagist · Affected: 2.0.4, 2.0.5, 2.0.6, 2.0.7 (+621 more) | 5.4.46 |
| symfony/symfony Packagist · Affected: v6.0.0, v6.0.1, v6.0.10, v6.0.11 (+90 more) | 6.4.14 |
| symfony/process Packagist · Affected: v6.0.0, v6.0.11, v6.0.19, v6.0.2 (+39 more) | 6.4.14 |
| symfony/process Packagist · Affected: 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.
- CWE-77
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.4 score means for each attack dimension.
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/symfony/symfony/security/advisories/GHSA-qq5c-677p-737qWEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-51736ADVISORY
- https://github.com/symfony/symfony/commit/18ecd03eda3917fdf901a48e72518f911c64a1c9WEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/process/CVE-2024-51736.yamlWEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2024-51736.yamlWEB
- https://github.com/symfony/symfonyPACKAGE
- https://symfony.com/cve-2024-51736WEB
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. It has a 0.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-51736 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 47.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
Related CVEs
- CVE-2017-11365CRITICAL
Symfony Incorrect Access Control
- CVE-2019-11325CRITICAL
Improper Input Validation in Symfony
- CVE-2016-2403CRITICAL
Symfony Authentication Bypass
- CVE-2019-10913CRITICAL
Invalid HTTP method overrides allow possible XSS or other attacks in Symfony
- CVE-2026-108082HIGH
Symfony: ReDoS in HeaderUtils::split() Reachable Through the Cache-Control Request Header
- CVE-2014-6072HIGH
Symfony Cross-Site Request Forgery vulnerability in the Web Profiler
- CVE-2026-24739MEDIUM
Symfony's incorrect argument escaping under MSYS2/Git Bash can lead to destructive file operations on Windows
- CVE-2026-45068MEDIUM
Symfony has an Argument Injection in SendmailTransport via Dash-Prefixed Recipient Address