| Package | Affected versions | Patched versions |
|---|---|---|
| symfony/process | ≥ 6.0.0, < 6.4.14≥ 7.0.0, < 7.1.7< 5.4.46 | 6.4.147.1.75.4.46 |
| symfony/symfony | ≥ 6.0.0, < 6.4.14≥ 7.0.0, < 7.1.7< 5.4.46 | 6.4.147.1.75.4.46 |
| symfony | ≥ 6.0.0, < 6.4.14≥ 7.0.0, < 7.1.7< 5.4.46 | 6.4.147.1.75.4.46 |
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.
The Process class now uses the absolute path to cmd.exe.
The patch for this issue is available here for branch 5.4.
We would like to thank Jordi Boggiano for reporting the issue and Nicolas Grekas for providing the fix.
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free