CVE-2026-45570
Published:May 27, 2026
Updated:June 11, 2026
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 tokens. This vulnerability is fixed in 5.19.1 and 6.0.0-alpha.4.
Affected Packages
https://github.com/go-git/go-git.git (GITHUB):
Affected version(s) >=v1.0.0 <v5.19.1Fix Suggestion:
Update to version v5.19.1github.com/go-git/go-git/v6 (GO):
Affected version(s) >=v6.0.0-alpha.1 <v6.0.0-alpha.4Fix Suggestion:
Update to version v6.0.0-alpha.4github.com/go-git/go-git/v5 (GO):
Affected version(s) >=v5.0.0 <v5.19.1Fix Suggestion:
Update to version v5.19.1Related Resources (3)
Do you need more information?
Contact UsCVSS v4
Base Score:
2.3
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
PRESENT
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
LOW
Subsequent System Integrity
LOW
Subsequent System Availability
LOW
CVSS v3
Base Score:
7.1
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
LOW
Weakness Type (CWE)
Improper Encoding or Escaping of Output
EPSS
Base Score:
0.02