Golang github go git go git: Prior to 5.19.2 and 6.0.0-alpha.5, reference names are not sanitized before being used to
Affects golang-github-go-git-go-gitSource GCVE Database
Not known to be exploited · CVSS 6.3 Medium · fixed in 5.19.2 : update golang-github-go-git-go-git when convenient.
Data as of 24 Nov 2026, 21:08 UTC
- Patch
- Available – fixed in 5.19.2
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:LExploitation evidence
Disclosed: evidence found.
CVE published 7 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10golang-github-go-git-go-gitpkg:deb/ubuntu/golang-github-go-git-go-git?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10golang-github-go-git-go-git-v6pkg:deb/ubuntu/golang-github-go-git-go-git-v6?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu Pro 26.04 LTSgolang-github-go-git-go-gitpkg:deb/ubuntu/golang-github-go-git-go-git?arch=source&distro=esm-apps/resoluteOther threats | Affected
| Fixed in– |
Ubuntu Pro 24.04 LTSgolang-github-go-git-go-gitpkg:deb/ubuntu/golang-github-go-git-go-git?arch=source&distro=esm-apps/nobleOther threats | Affected
| Fixed in– |
Ubuntu Pro 22.04 LTSgolang-github-go-git-go-gitpkg:deb/ubuntu/golang-github-go-git-go-git?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade to go-git version 5.19.2 or later, or 6.0.0-alpha.5 or later, where the issue is fixed. No other mitigation is indicated or required.
Description
The go-git library versions prior to 5.19.2 and 6.0.0-alpha.5 do not sanitize reference names before using them to construct on-disk paths. This allows maliciously crafted reference names containing directory traversal sequences to cause files to be written outside the intended reference storage directory. The issue is fixed in versions 5.19.2 and 6.0.0-alpha.5.
References
- ubuntu.com/security/CVE-2026-71557 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-71557 (opens in a new tab)
- github.com/go-git/go-git/commit/4a0e66d555de5f9a30c31e2df64f445f42bd01e7 (opens in a new tab)
- github.com/go-git/go-git/commit/da9f7d8a0e98b475600177348d6ece384a370f36 (opens in a new tab)
- github.com/go-git/go-git/pull/2247 (opens in a new tab)
- github.com/go-git/go-git/pull/2254 (opens in a new tab)
- github.com/go-git/go-git/releases/tag/v5.19.2 (opens in a new tab)
- github.com/go-git/go-git/releases/tag/v6.0.0-alpha.5 (opens in a new tab)
- github.com/go-git/go-git/security/advisories/GHSA-qgq7-7hm3-q39j (opens in a new tab)