Path Traversal in Go-Git
CVE-2026-45571
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.
Vulnerability class: Path Traversal (Directory Traversal)
EPSS: 0.003 (21.9th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L.
Affected products
- Go-git — versions < 5.19.1, >= 6.0.0-alpha.1, < 6.0.0-alpha.4
- Go-git_project Go-git — versions 6.0.0
Weakness classification (CWE)
References
- security-advisories@github.com (x_refsource_CONFIRM, Vendor Advisory)
Frequently asked questions
- What is CVE-2026-45571?
- CVE-2026-45571 is a medium-severity vulnerability in Go-Git, classified under Path Traversal. CVSS score: 5.4/10. Published 2026-05-27.
- How severe is CVE-2026-45571?
- Medium severity. CVSS v3 base score is 5.4 out of 10.