Path Validation Issue in go-git Affecting File Integrity
CVE-2026-45571

5.4MEDIUM

Key Information:

Vendor

Go-git

Status
Vendor
CVE Published:
27 May 2026

What is CVE-2026-45571?

The go-git library, an extensible git implementation written in Go, has a path validation issue that allows crafted repository data to potentially compromise files outside the intended checkout target, including sensitive areas such as the .git directory. This weakness arises from go-git's failure to adhere to established validation checks that are present in upstream Git versions. The flaw has been addressed in the releases 5.19.1 and 6.0.0-alpha.4, ensuring enhanced security for users.

Affected Version(s)

go-git < 5.19.1 < 5.19.1

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

References

CVSS V3.1

Score:
5.4
Severity:
MEDIUM
Confidentiality:
None
Integrity:
Low
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
Required
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.