CVE-2026-71556 go-git: Worktree operations may follow symlinks
Attackers can craft malicious repositories to force go-git to read or write files outside the working directory via symlink resolution during worktree operations.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-71556?
CVE-2026-71556 is a high-severity path traversal vulnerability in go-git, published on 7 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-59
Which versions are affected by CVE-2026-71556?
6 open source packages ship an affected version, including github.com/go-git/go-git/v5 and github.com/go-git/go-git/v6.
| Package | Affected | Fixed in |
|---|---|---|
github.com/go-git/go-git/v5 Go | All versions | 5.19.2 |
github.com/go-git/go-git/v5 Go | All versions | 5.19.2 |
github.com/go-git/go-git/v5 Go | All versions | 5.19.2 |
github.com/go-git/go-git/v6 Go | All versions | 6.0.0-alpha.5 |
github.com/go-git/go-git/v6 Go | All versions | 6.0.0-alpha.5 |
github.com/go-git/go-git/v6 Go | All versions | 6.0.0-alpha.5 |
Linux distribution packages (2)
grype Red Hat:hummingbird:1 | All versions | 0:0.118.0-0.1.hum1 |
syft Red Hat:hummingbird:1 | All versions | 0:1.51.1-0.1.hum1 |
How do I fix CVE-2026-71556?
Upgrade github.com/go-git/go-git/v5 to 5.19.2 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-71556 being exploited?
There is no known exploitation of CVE-2026-71556 in the wild and no public exploit code.
Sources
Also known as AZL-94676, AZL-95484, CLEANSTART-2026-BA50479, CLEANSTART-2026-JT96055, CLEANSTART-2026-OJ43473, CLEANSTART-2026-RS39844 and 253 more.