Golang github go git go git: Prior to 5.19.1 and 6.0.0-alpha.4, go-git's SSH transport constructs the remote exec
Affects golang-github-go-git-go-gitSource GCVE Database
Not known to be exploited · CVSS 9.6 Critical · fixed in 5.19.1 : patch golang-github-go-git-go-git as a priority.
Data as of 24 Nov 2026, 20:37 UTC
- Patch
- Available – fixed in 5.19.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 27 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10golang-github-go-git-go-gitpkg:deb/ubuntu/golang-github-go-git-go-git?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu Pro 26.04 LTSgolang-github-go-git-go-gitpkg:deb/ubuntu/golang-github-go-git-go-git?arch=source&distro=esm-apps/resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10golang-github-go-git-go-gitpkg:deb/ubuntu/golang-github-go-git-go-git?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu Pro 24.04 LTSgolang-github-go-git-go-gitpkg:deb/ubuntu/golang-github-go-git-go-git?arch=source&distro=esm-apps/nobleOther threats | Affected
| Fixed in– |
Ubuntu Pro 22.04 LTSgolang-github-go-git-go-gitpkg:deb/ubuntu/golang-github-go-git-go-git?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade to go-git versions 5.19.1 or later, or 6.0.0-alpha.4 or later, where this vulnerability is fixed. No other mitigation is indicated by the vendor advisory.
Description
A command injection vulnerability exists in go-git's SSH transport prior to versions 5.19.1 and 6.0.0-alpha.4. The issue arises because the remote exec command wraps the repository path in single quotes but does not escape single quotes within the path, allowing an attacker to break out of the quoted region and inject additional shell commands. This vulnerability has been fixed in versions 5.19.1 and 6.0.0-alpha.4.