The vulnerability exists in the execGitShallowClone function within src/core/git/gitCommand.ts. The user-supplied remoteBranch argument was not sanitized or properly delimited before being passed to git fetch and git checkout commands executed via child_process.execFileAsync. This allows an attacker to inject arbitrary command-line options. The provided patch confirms this by adding the --end-of-options delimiter to the git command arguments and introducing a new validation function, validateGitRef, which prevents ref names from starting with a '-', a common pattern for command-line options. The vulnerability is a classic argument injection (CWE-88). The function execGitShallowClone is the direct sink where the untrusted input is used to construct and execute a command, making it the primary vulnerable function that would appear in a runtime profile during exploitation.