[Process] ExecutableFinder::find() method will execute exec()
by passed the name parameter
#53479
Labels
exec()
by passed the name parameter
#53479
Symfony version(s) affected
v6.4.2
How to reproduce
In my Laravel project composer.json file, script defined a few script like that
when I run
composer run script post-update-cmd
the composer package will remove the prefix@php
and extract-r
to determine if the file is executable, and then theexec('command -v')
will execute-r
thatexec('command -v -r')
and output a message that "sh: line 0: command: -r: invalid optioncommand: usage: command [-pVv] command [arg ...]
"
Possible Solution
I want to pull a PR to update the
exec()
function, What do you think about that?Additional Context
No response
The text was updated successfully, but these errors were encountered: