CVE-2026-45570: Vulnerability in Go-git Project Go-git
Critical. go-git is an extensible git implementation library written in pure Go. Prior to 5.19.1 and 6.0.0-alpha.4, go-git's SSH transport constructs the remote exec command by wrapping the repository path in single quotes without escaping single quotes embedded inside the path. A repository path containing a single quote can therefore break out of the quoted region in the exec command and be appended as additional shell...
Go, CWE-116
- Exploitation
- None confirmed
- Severity
- 9.6 of 10
- Attack likelihood
- 0.4 % in 30 days
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-m7cr-m3pv-hgrp
- EU ID
- EUVD-2026-32546
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- Weakness
- CWE-116
- Published
- 19 May 2026
- Last change
- 17 Jun 2026
- Likelihood rank
- Higher than 29 % of all rated vulnerabilities
- Analysis status
- Analyzed
- Ecosystem
- Go
Affected products
Affected versions and the first fixed release
- Go-git Project Go-git Before 5.19.1; Version 6.0.0. Fixed in 5.19.1
Affected packages
Vulnerable version ranges and fixed releases
- github.com/go-git/go-git/v5 Go, Affected through 5.19.0. Fixed in 5.19.1
- github.com/go-git/go-git/v6 Go, Affected through 6.0.0-alpha.3. Fixed in 6.0.0-alpha.4
- github.com/go-git/go-git Go, Affected through 4.7.0. No fixed version recorded
Advisories
Vendor and security advisories
Related
- Go-git vulnerabilities Recent advisories, watch this product