GPL-based Git Implementation Affected by Directory Traversal Vulnerability
CVE-2026-71557

6.3MEDIUM

Key Information:

Vendor

Go-git

Status
Vendor
CVE Published:
7 August 2026

What is CVE-2026-71557?

The go-git library, a pure Go implementation of Git, has a vulnerability related to improper sanitization of reference names before they are used to construct on-disk paths. As a result, an attacker could craft a malicious reference name containing directory-traversal sequences, allowing files to be written outside the designated reference storage directory. This vulnerability could jeopardize the security of the file system. Versions 5.19.2 and 6.0.0-alpha.5 have addressed this critical issue.

Affected Version(s)

go-git < 5.19.2 < 5.19.2

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

References

CVSS V3.1

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

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.