CVE-2026-71557
Published:August 07, 2026
Updated:September 01, 2026
go-git is an extensible git implementation library written in pure Go. Prior to 5.19.2 and 6.0.0-alpha.5, reference names are not sanitized before being used to construct on-disk paths under the reference storage directory, so a maliciously crafted reference name (for example containing directory-traversal sequences) can cause go-git to write files outside the intended reference storage directory. Versions 5.19.2 and 6.0.0-alpha.5 fix the issue.
Affected Packages
https://github.com/go-git/go-git.git (GITHUB):
Affected version(s) >=v5.0.0 <v5.19.2Fix Suggestion:
Update to version v5.19.2https://github.com/go-git/go-git.git (GITHUB):
Affected version(s) >=v6.0.0-alpha.1 <v6.0.0-alpha.5Fix Suggestion:
Update to version v6.0.0-alpha.5github.com/go-git/go-git/v6 (GO):
Affected version(s) >=v6.0.0-alpha.1 <v6.0.0-alpha.5Fix Suggestion:
Update to version v6.0.0-alpha.5github.com/go-git/go-git/v6 (GO):
Affected version(s) >=v6.0.0-alpha.1 <v6.0.0-alpha.5Fix Suggestion:
Update to version v6.0.0-alpha.5github.com/go-git/go-git/v5 (GO):
Affected version(s) >=v5.0.0 <v5.19.2Fix Suggestion:
Update to version v5.19.2github.com/go-git/go-git/v5 (GO):
Affected version(s) >=v5.0.0 <v5.19.2Fix Suggestion:
Update to version v5.19.2Related Resources (10)
Do you need more information?
Contact UsCVSS v4
Base Score:
7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
PASSIVE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
HIGH
Vulnerable System Availability
LOW
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
6.3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
NONE
Integrity
HIGH
Availability
LOW
Weakness Type (CWE)
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
EPSS
Base Score:
0.41