Escape user input in git clone commands across all providers
fix(security): escape user input in git clone commands across all providers
Escape user input in git clone commands across all providers47347a-fix-escape-user-input-in-git-clone-cve-2026-72740-cve-2026-72867-cve-2026-72872fixescape user input git clone commands
Committed by Siumauricio
commit message
fix(security): escape user input in git clone commands across all providers
User-controlled git fields (customGitUrl, branch names, repo owner/name,
gitlab namespace, SSH hostname) were interpolated unescaped into git clone /
ssh-keyscan shell commands run via execAsync / execAsyncRemote, allowing
authenticated OS command injection. All such values are now passed through
shell-quote before interpolation (defense at the sink, covering every code
path including the compose branch bypass).
Closes GHSA-qxcw-cx35-2hrw, GHSA-hrfh-82jj-3q46, GHSA-6693-xv3f-69px,
GHSA-qwwm-hc7m-7xp9, GHSA-grrj-6xrh-j6vp, GHSA-x2p2-qq8g-2mqq,
GHSA-cg8g-x23v-5fw8Editor assessment
This commit patches CVE-2026-72740, CVE-2026-72867 and CVE-2026-72872. The subject is broad but accurate, escaping user input in git clone commands across all providers. The body lists the dangerous fields, custom git URL, branch names, repo owner and name, GitLab namespace and SSH hostname, and explains that they reached clone and ssh-keyscan shell commands through execAsync and execAsyncRemote, enabling authenticated OS command injection. It describes the sink-level defense and notes this covers the compose branch bypass. Seven GHSA references follow in a Closes footer. Comprehensive, if list-heavy.