CVE-2024-51736: Command execution hijack on Windows with Process class in symfony/process

Published Nov 6, 2024
·
Updated

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.

Other sources

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.

NVD

Affected Software

10 affected componentsFixes available
composer/symfony/symfony>=7.0.0<7.1.7
7.1.7
composer/symfony/symfony>=6.0.0<6.4.14
6.4.14
composer/symfony/symfony<5.4.46
5.4.46
composer/symfony/process>=7.0.0<7.1.7
7.1.7
composer/symfony/process>=6.0.0<6.4.14
6.4.14
composer/symfony/process<5.4.46
5.4.46
All of the following
Any of the following
SensioLabs Symfony<5.4.46
SensioLabs Symfony>=6.0.0<6.4.14
SensioLabs Symfony>=7.0.0<7.1.7
Microsoft Windows

Event History

Nov 6, 2024
Advisory Published
via GitHub·03:22 PM
CVE Published
via MITRE·08:51 PM
Data Sourced
via MITRE·08:51 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 PM
Affected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-51736?

CVE-2024-51736 is considered a moderate severity vulnerability due to its potential for command execution hijacking.

2

How do I fix CVE-2024-51736?

To fix CVE-2024-51736, upgrade to Symfony version 7.1.7, 6.4.14, or 5.4.46.

3

What are the affected versions for CVE-2024-51736?

CVE-2024-51736 affects Symfony versions prior to 7.1.7, 6.4.14, and 5.4.46.

4

What is the nature of the vulnerability in CVE-2024-51736?

CVE-2024-51736 allows a hijack of command execution when cmd.exe is present in the current working directory.

5

Which packages are impacted by CVE-2024-51736?

The impacted packages are symfony/symfony and symfony/process versions below the specified remediation versions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203