CVE-2026-45571 Details
Description
go-git is an extensible git implementation library written in pure Go. Prior to 5.19.1 and 6.0.0-alpha.4, a path validation issue in go-git could allow crafted repository data to affect files outside the intended checkout target, including the repository's .git directory. These validations were introduced in upstream Git years ago, so the vulnerability arose from go-git drifting from those checks. This vulnerability is fixed in 5.19.1 and 6.0.0-alpha.4.
A path validation vulnerability has been identified in the go-git library, which is a Git implementation written in Go. This issue affects versions of go-git prior to 5.19.1 and 6.0.0-alpha.4. The vulnerability allows crafted repository data to interfere with files outside the designated checkout area, including the repository's .git directory. This problem arises from go-git's deviation from upstream Git's validation checks, which had been established years earlier. Exploitation of this vulnerability requires a maliciously crafted repository payload, and some attack vectors are specific to certain platforms: Windows, macOS, or across all supported platforms.
Users should upgrade to go-git versions 5.19.1 or 6.0.0-alpha.4. For versions prior to 5, users are recommended to upgrade to a supported go-git version.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 27, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/go-git/go-git/security/advisories/GHSA-crhj-59gh-8x96 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| go-git project go-git | < 5.19.1 6.0.0 alpha1 6.0.0 alpha2 6.0.0 alpha3 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 4, 2026 | Initial Analysis | [email protected] |
| May 27, 2026 | New CVE Received | [email protected] |