CVE-2026-71556
go-git: Worktree operations may follow symlinks
Also known as GHSA-hc8v-wwc9-vgxm, GO-2026-6213
Mitigation
- Upgrade github.com/go-git/go-git/v5 to 5.19.2 or later.
- Upgrade github.com/go-git/go-git/v6 to 6.0.0-alpha.5 or later.
Who should check
- Projects that depend on Go package github.com/go-git/go-git/v5 (< 5.19.2)
- Projects that depend on Go package github.com/go-git/go-git/v6 (< 6.0.0-alpha.5)
- Anyone running go-git < 5.19.2; >= 6.0.0-alpha.1, < 6.0.0-alpha.5
Vulnerability facts
- Affected
- github.com/go-git/go-git/v5 < 5.19.2; github.com/go-git/go-git/v6 < 6.0.0-alpha.5
- Fixed in
- 5.19.2, 6.0.0-alpha.5
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.1 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: Required
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: High
- Availability impact: Low
- EPSS
- 0.45% chance of exploitation in 30 days (percentile 31, 2026-11-26)
- CWE
- CWE-59
- Modified
Description
go-git is an extensible git implementation library written in pure Go. Prior to 5.19.2 and 6.0.0-alpha.5, worktree operations (including checkout, status, and add) resolve symbolic links inside the working tree without confining resolution to the worktree boundary, so a maliciously crafted repository containing a symlink can cause go-git to read from or write to files outside the intended working directory when the repository is cloned and its worktree operations are used. Versions 5.19.2 and 6.0.0-alpha.5.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/go-git/go-git/v5 | < 5.19.2 | 5.19.2 | osv |
| Go github.com/go-git/go-git/v6 | < 6.0.0-alpha.5 | 6.0.0-alpha.5 | osv |
| go-git | < 5.19.2; >= 6.0.0-alpha.1, < 6.0.0-alpha.5 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-71556. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-71556.md Affected: github.com/go-git/go-git/v5 < 5.19.2; github.com/go-git/go-git/v6 < 6.0.0-alpha.5 Fixed in: 5.19.2, 6.0.0-alpha.5 Steps: 1. Search this machine and project for github.com/go-git/go-git/v5 (Go), github.com/go-git/go-git/v6 (Go), go-git: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
FAQ
Is CVE-2026-71556 being exploited?
There is no confirmed exploitation: CVE-2026-71556 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.45% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-71556?
High: CVSS 7.1 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2026-71556?
github.com/go-git/go-git/v5 < 5.19.2; github.com/go-git/go-git/v6 < 6.0.0-alpha.5.
Is there a fix for CVE-2026-71556?
Yes. Fixed in 5.19.2, 6.0.0-alpha.5. Upgrade github.com/go-git/go-git/v5 to 5.19.2 or later. Upgrade github.com/go-git/go-git/v6 to 6.0.0-alpha.5 or later.
How do I check if I'm affected by CVE-2026-71556?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.