Vulnerability · Published Aug 7, 2026 · Assigned by GitHub_M

CVE-2026-71556go-git: Worktree operations may follow symlinks

High 7.1

In plain English

A high-severity security flaw in go-git from go-git. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 30% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.1High
Exploit odds (30 days)0.4%top 70.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12golang-github-go-git-go-gitno fix listedDEBIAN-CVE-2026-71556
Debian:13golang-github-go-git-go-gitno fix listedDEBIAN-CVE-2026-71556
Debian:14golang-github-go-git-go-git5.19.2-1DEBIAN-CVE-2026-71556
Debian:14golang-github-go-git-go-git-v66.0.0~alpha.5-1DEBIAN-CVE-2026-71556
Gogithub.com/go-git/go-git/v55.19.2GHSA-hc8v-wwc9-vgxm
Gogithub.com/go-git/go-git/v55.19.2GO-2026-6213
Gogithub.com/go-git/go-git/v66.0.0-alpha.5GO-2026-6213
Gogithub.com/go-git/go-git/v66.0.0-alpha.5GHSA-hc8v-wwc9-vgxm
Ubuntu:26.10golang-github-go-git-go-gitno fix listedUBUNTU-CVE-2026-71556
Ubuntu:26.10golang-github-go-git-go-git-v6no fix listedUBUNTU-CVE-2026-71556

Affected products (as reported)

VendorProductVersions
go-git go-git < 5.19.2>= 6.0.0-alpha.1, < 6.0.0-alpha.5

Weakness: CWE-59 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L

References