Live threats

All CVEs / go-git

CVE-2026-71556go-git

High 7.1 No auth needed

Priority
58
CVSS 3.1
7.1
EPSS
—
Auth required
No
Published
Aug 7, 2026
Updated
Sep 10, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-59
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for go-git.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/go-git/go-git/v5 < 5.19.2 5.19.2 go get github.com/go-git/go-git/v5@v5.19.2
Go github.com/go-git/go-git/v5 < 5.19.2 5.19.2 go get github.com/go-git/go-git/v5@v5.19.2
Go github.com/go-git/go-git/v6 < 6.0.0-alpha.5 6.0.0-alpha.5 go get github.com/go-git/go-git/v6@v6.0.0-alpha.5
Go github.com/go-git/go-git/v6 < 6.0.0-alpha.5 6.0.0-alpha.5 go get github.com/go-git/go-git/v6@v6.0.0-alpha.5

Per OSV / GitHub Advisories (GHSA-hc8v-wwc9-vgxm, GO-2026-6213). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official advisories

Also: SUSE (+9), Red Hat (+4)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.