Advisory

GHSA-qq5c-677p-737q

Also known as: CVE-2024-51736

Summary

Symfony vulnerable to command execution hijack on Windows with Process class

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-11-06 15:22 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

symfony/process

Packagist · All systems

Affected

  • introduced 0, fixed 5.4.46 (ecosystem)

Fixed versions

5.4.46

Fix

The export has no generic command for this ecosystem.

symfony/process

Packagist · All systems

Affected

  • introduced 6.0.0, fixed 6.4.14 (ecosystem)

Fixed versions

6.4.14

Fix

The export has no generic command for this ecosystem.

symfony/process

Packagist · All systems

Affected

  • introduced 7.0.0, fixed 7.1.7 (ecosystem)

Fixed versions

7.1.7

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 0, fixed 5.4.46 (ecosystem)

Fixed versions

5.4.46

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 6.0.0, fixed 6.4.14 (ecosystem)

Fixed versions

6.4.14

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 7.0.0, fixed 7.1.7 (ecosystem)

Fixed versions

7.1.7

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences