CVE-2026-71556go-git
High 7.1 No auth needed
Follow: this CVE · go-git · go-git We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for go-git.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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
- go-git · go-git
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- Red Hat Security Advisory: Red Hat Edge Manager Version 1.1.4 Security Update · Red Hat · RHSA-2026:68334 · Nov 23, 2026 High
- Red Hat Security Advisory: Red Hat Edge Manager Version 1.2.1 Security Update · Red Hat · RHSA-2026:68335 · Nov 23, 2026 High
- Security update for terraform-provider-aws, terraform-provider-azurerm, terraform-provider-external, terraform-provider-google, terraform-provider-helm, terraform-provider-kubernetes, terraform-provider-local, terraform-provider-null, terraform-provider-random, terraform-provider-tls · SUSE · SUSE-SU-2026:4628-1 · Oct 12, 2026 High
- Security update for alloy · SUSE · openSUSE-SU-2026:22032-1 · Oct 6, 2026 Critical
- Security update for alloy · SUSE · SUSE-SU-2026:24148-1 · Oct 6, 2026 Critical
- Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update · Red Hat · RHSA-2026:66421 · Sep 11, 2026 High
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.