There is a security vulnerability in the untrusted workspaces flow with specially crafted workspaces.
Patches
The fix is available starting with 2024.20.0 fix is: a16ed6b
Workarounds
Check for python executables checked-into SCM before opening untrusted workspaces.
References