Highlights
Command Injection: 11 prior fixes. Scrutinize any change in this area.
src/core/git/gitCommand.ts: most-fixed (9 issues). Treat as high-risk during review.
28 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns
The bug types that recur here, drawn from past fixes, not open vulnerabilities.
Command Injection: Unsanitized repository URLs and lack of strict parameter validation in execFileAsync allowed execution of dangerous arguments like --upload-pack, --receive-pack, or --config, leading to arbitrary code execution.
Argument Injection: Git commands executed without explicitly defining the '--' option delimiter permitted malicious remote branch names and reference inputs to be interpreted as command line options.
Path Traversal: Weak path validation during archive and ZIP extraction permitted directory traversal, allowing attackers to overwrite arbitrary files outside the target directory.