CVE-2026-71557
go-git: Malicious reference names may modify files outside the reference storage
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.
INFO
Published Date :
Aug. 7, 2026, 5:17 p.m.
Last Modified :
Aug. 7, 2026, 6:17 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
Affected Products
The following products are affected by CVE-2026-71557
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
No affected product recoded yet
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | MEDIUM | [email protected] | ||||
| CVSS 3.1 | MEDIUM | MITRE-CVE |
Solution
- Update go-git to version 5.19.2 or later.
- Update go-git to version 6.0.0-alpha.5 or later.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-71557.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-71557 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-71557
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-71557 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-71557 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Aug. 07, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2026-71557', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-08-07T17:53:21.966734Z'} -
New CVE Received by [email protected]
Aug. 07, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'go-git', 'product': 'go-git', 'versions': [{'status': 'affected', 'version': '< 5.19.2'}, {'status': 'affected', 'version': '>= 6.0.0-alpha.1, < 6.0.0-alpha.5'}]}] Added 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. Added CVSS V3.1 AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L Added CWE CWE-22 Added Reference https://github.com/go-git/go-git/commit/4a0e66d555de5f9a30c31e2df64f445f42bd01e7 Added Reference https://github.com/go-git/go-git/commit/da9f7d8a0e98b475600177348d6ece384a370f36 Added Reference https://github.com/go-git/go-git/pull/2247 Added Reference https://github.com/go-git/go-git/pull/2254 Added Reference https://github.com/go-git/go-git/releases/tag/v5.19.2 Added Reference https://github.com/go-git/go-git/releases/tag/v6.0.0-alpha.5 Added Reference https://github.com/go-git/go-git/security/advisories/GHSA-qgq7-7hm3-q39j