A crafted or compromised recipe kit can make ux:install read or write files outside your project. It can overwrite files like controllers, git hooks or .env on your machine or CI runner, which can lead to running the attacker's code. It can also read files outside the kit's folder.
Who is affected
Projects with symfony/ux-toolkit from 2.32.0 up to (not including) 2.36.1, or 3.x before 3.2.0, that run the ux:install console command with a kit you don't fully trust. The Symfony UX advisory says the kit's copy-files map could point outside the intended folder. Files can be overwritten without asking when you pass --force or run non-interactively, as in CI. If you never run ux:install, or only with kits you trust, you aren't exposed.
What to do
Update symfony/ux-toolkit to 3.2.0, or to 2.36.1 on 2.x. The fix rejects any copy-files path that tries to leave its folder, and checks the final path again before each read and write.
Reported by Pascal Cescon.