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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | golang-github-go-git-go-git | no fix listed | DEBIAN-CVE-2026-71556 |
| Debian:13 | golang-github-go-git-go-git | no fix listed | DEBIAN-CVE-2026-71556 |
| Debian:14 | golang-github-go-git-go-git | 5.19.2-1 | DEBIAN-CVE-2026-71556 |
| Debian:14 | golang-github-go-git-go-git-v6 | 6.0.0~alpha.5-1 | DEBIAN-CVE-2026-71556 |
| Go | github.com/go-git/go-git/v5 | 5.19.2 | GHSA-hc8v-wwc9-vgxm |
| Go | github.com/go-git/go-git/v5 | 5.19.2 | GO-2026-6213 |
| Go | github.com/go-git/go-git/v6 | 6.0.0-alpha.5 | GO-2026-6213 |
| Go | github.com/go-git/go-git/v6 | 6.0.0-alpha.5 | GHSA-hc8v-wwc9-vgxm |
| Ubuntu:26.10 | golang-github-go-git-go-git | no fix listed | UBUNTU-CVE-2026-71556 |
| Ubuntu:26.10 | golang-github-go-git-go-git-v6 | no fix listed | UBUNTU-CVE-2026-71556 |
Affected products (as reported)
Weakness: CWE-59 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
References
- https://github.com/go-git/go-git/security/advisories/GHSA-hc8v-wwc9-vgxm x_refsource_CONFIRM
- https://github.com/go-git/go-git/commit/008a78f2dd86f52544ddff8b8e8ddeecdf3f7aab x_refsource_MISC
- https://github.com/go-git/go-git/commit/661d1c7f101d34e002a3cfcf8dbea5b7421d07ac x_refsource_MISC
- https://github.com/go-git/go-git/releases/tag/v5.19.2 x_refsource_MISC
- https://github.com/go-git/go-git/releases/tag/v6.0.0-alpha.5 x_refsource_MISC