๐Ÿ” CVE Alert

CVE-2026-45571

MEDIUM 5.4

go-git: Crafted repositories may modify main and submodule .git directories

CVSS Score
5.4
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-22
Vendor go-git
Product go-git
Published May 27, 2026
Last Updated May 27, 2026
Stay Ahead of the Next One

Get instant alerts for go-git go-git

Be the first to know when new medium vulnerabilities affecting go-git go-git are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
Low

Affected Versions

go-git / go-git
< 5.19.1 >= 6.0.0-alpha.1, < 6.0.0-alpha.4

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/go-git/go-git/security/advisories/GHSA-crhj-59gh-8x96