CVE-2026-71557 Details
Description
go-git is an extensible git implementation library written in pure Go. Prior to 5.19.2 and 6.0.0-alpha.5, reference names are not sanitized before being used to construct on-disk paths under the reference storage directory, so a maliciously crafted reference name (for example containing directory-traversal sequences) can cause go-git to write files outside the intended reference storage directory. Versions 5.19.2 and 6.0.0-alpha.5 fix the issue.
A path traversal vulnerability has been identified in the go-git library, specifically in versions prior to 5.19.2 and 6.0.0-alpha.5. The issue arises because reference names are not properly sanitized before being used to create on-disk paths in the reference storage directory. This lack of validation allows maliciously crafted reference names, such as those containing directory-traversal sequences, to manipulate files outside the designated reference storage area. The vulnerability is present in filesystem-backed repositories using the 'storage/filesystem' package and its 'dotgit' reference storage. It can be exploited when an application interacts with a malicious Git server or processes attacker-controlled reference names.
Users should upgrade to go-git versions 5.19.2 or 6.0.0-alpha.5, both of which address the vulnerability by properly validating reference names before they are used as filesystem paths.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 7, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
No affected product data is available for this CVE.
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 7, 2026 | CVE Modified | CISA-ADP |
| Aug 7, 2026 | New CVE Received | [email protected] |