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)
Published · last modified .
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.
EPSS exploit prediction
EPSS: 0.003 (24.5th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 25th percentile — 24.5% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.003 · newest: 0.003 · change: +0.000
Affected products
- Go-Git — versions < 5.19.1, >= 6.0.0-alpha.1, < 6.0.0-alpha.4
- Go-Git Project — versions 6.0.0
Weakness classification (CWE)
References
- github.com/go-git/go-git/security/advisories/GHSA-crhj-59gh-8x96 (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.