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

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.

Check my composer.lock

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
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, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (6)

Affects 1 ecosystem: Packagist (2).

PackageFixed 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.

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. 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

CVSS Score
8.4

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.68%
EPSS percentile: 47.4

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

GHSA-qq5c-677p-737q

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my composer.lock