cve.bz

CVE-2026-71556 go-git go-git: Link Following

7.1 highEPSS 0.4%Fix available

High (7.1) in go-git go-git. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/go-git/go-git/v5 5.19.2.

On this page
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.

Severity

CVSS 3.1

7.1 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 30th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-08-07. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-59 Improper Link Resolution Before File Access (Link Following)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

  • github.com/go-git/go-git/v5 (Go): fixed in 5.19.2
  • github.com/go-git/go-git/v6 (Go): fixed in 6.0.0-alpha.5
  • Debian, Red Hat, SUSE, openSUSE, Azure Linux: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2026-71556 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-71556?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-71556?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-71556 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

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

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-hc8v-wwc9-vgxmGogithub.com/go-git/go-git/v5<5.19.25.19.2
GHSA-hc8v-wwc9-vgxmGogithub.com/go-git/go-git/v6<6.0.0-alpha.56.0.0-alpha.5
GO-2026-6213Gogithub.com/go-git/go-git/v5<5.19.25.19.2
GO-2026-6213Gogithub.com/go-git/go-git/v6<6.0.0-alpha.56.0.0-alpha.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13golang-github-go-git-go-gitno fix listedDEBIAN-CVE-2026-71556
Debian14golang-github-go-git-go-git5.19.2-1DEBIAN-CVE-2026-71556
Debian14golang-github-go-git-go-git-v66.0.0~alpha.5-1DEBIAN-CVE-2026-71556
Ubuntu26.10golang-github-go-git-go-git-v6no fix listedUBUNTU-CVE-2026-71556
UbuntuPro:22.04:LTS, Pro:24.04:LTS, Pro:26.04:LTSgolang-github-go-git-go-gitno fix listedUBUNTU-CVE-2026-71556
Red Hathummingbird:1grype0:0.118.0-0.1.hum1RHSA-2026:60793
Red Hathummingbird:1kube-state-metrics0:2.20.0-0.2.hum1RHSA-2026:66208
Red Hathummingbird:1syft0:1.51.1-0.1.hum1RHSA-2026:60646
Red Hathummingbird:1trivy0:0.73.0-0.1.hum1RHSA-2026:50953
Red Hathummingbird:1trivy0:0.74.0-0.2.hum1RHSA-2026:66421
SUSELinux Enterprise Module for Basesystem 15 SP7alloy1.19.2-150700.15.29.1SUSE-SU-2026:4408-1
SUSELinux Enterprise Module for Public Cloud 12amazon-ssm-agent3.3.5390.0-4.52.1SUSE-SU-2026:4286-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-aws3.11.0-150200.6.24.2SUSE-SU-2026:3916-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-aws3.11.0-150200.6.29.2SUSE-SU-2026:4628-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-azurerm2.32.0-150200.6.18.2SUSE-SU-2026:3916-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-azurerm2.32.0-150200.6.23.2SUSE-SU-2026:4628-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-external2.0.0-150200.6.18.2SUSE-SU-2026:3916-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-external2.0.0-150200.6.23.2SUSE-SU-2026:4628-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-google3.43.0-150200.6.18.2SUSE-SU-2026:3916-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-google3.43.0-150200.6.23.2SUSE-SU-2026:4628-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-helm2.9.0-150200.6.29.2SUSE-SU-2026:3916-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-helm2.9.0-150200.6.34.2SUSE-SU-2026:4628-1
13 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 16.0alloy1.19.2-160000.1.1openSUSE-SU-2026:22032-1
openSUSELeap 16.0amazon-ssm-agent3.3.5390.0-160000.1.1openSUSE-SU-2026:21884-1
openSUSELeap 16.0govulncheck-vulndb0.0.20260827T195228-160000.1.1openSUSE-SU-2026:21761-1
openSUSETumbleweedalloy1.19.2-1.1openSUSE-SU-2026:11803-1
openSUSETumbleweedamazon-ssm-agent3.3.5226.0-1.1openSUSE-SU-2026:11694-1
Azure Linux3cri-ono fix listedAZL-94676
Azure Linux3packer1.9.5-20AZL-95484

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

go-git is a pure-Go implementation of Git. During worktree operations (checkout, status, add), go-git resolves symbolic links without confining resolution to the worktree boundary, so a maliciously crafted repository containing a symlink can cause a consuming application to read from or write to files outside the intended working directory when that repository is cloned and its worktree operations are used. Exploitation requires the application to clone an attacker-controlled repository and then perform worktree operations against it; applications that only process trusted repositories are not exposed. Red Hat rates the impact of this flaw as Important.

Red Hat's mitigation

To reduce the risk of exploitation, do not clone or run worktree operations (checkout, status, add) on Git repositories originating from untrusted or attacker-controllable sources using an affected version of go-git. The issue is resolved by updating to go-git 5.19.2 or 6.0.0-alpha.5 (or later).

ProductPackageStateAdvisory
RHEM 1.1 for RHEL 10flightctl-0:1.1.4-1.el10emFixed 2026-09-16RHSA-2026:68334
RHEM 1.1 for RHEL 9flightctl-0:1.1.4-1.el9emFixed 2026-09-16RHSA-2026:68334
RHEM 1.2 for RHEL 10flightctl-0:1.2.1-1.el10Fixed 2026-09-16RHSA-2026:68335
RHEM 1.2 for RHEL 9flightctl-0:1.2.1-1.el9Fixed 2026-09-16RHSA-2026:68335
Cluster Observability Operator 1.5cluster-observability-operator/perses-rhel9:1790854501Fixed 2026-10-01RHSA-2026:74609
Cluster Observability Operator 1.5cluster-observability-operator/perses-rhel9-operator:1790854601Fixed 2026-10-01RHSA-2026:74609
external secrets operator for Red Hat OpenShift 1.2external-secrets-operator/external-secrets-rhel9:1788963929Fixed 2026-09-10RHSA-2026:66363
Red Hat Advanced Cluster Management for Kubernetes 2.11rhacm2/multicluster-operators-subscription-rhel9:1788976330Fixed 2026-09-15RHSA-2026:67538
Red Hat Advanced Cluster Management for Kubernetes 2.13rhacm2/multicluster-operators-subscription-rhel9:1788977270Fixed 2026-09-15RHSA-2026:67540
Red Hat Advanced Cluster Management for Kubernetes 2.14rhacm2/multicluster-operators-subscription-rhel9:1788976403Fixed 2026-09-15RHSA-2026:67539
Assisted Installer for Red Hat OpenShift Container Platform 2assisted/agent-preinstall-image-builder-rhel9Affected
Assisted Installer for Red Hat OpenShift Container Platform 2rhai/assisted-installer-controller-rhel9Will not fix
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-controller-rhel10Not affected
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-git-cloner-rhel10Not affected
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-image-bundler-rhel10Not affected
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-image-processing-rhel10Not affected
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-waiters-rhel10Not affected
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-webhook-rhel10Not affected
Compliance Operatorcompliance/openshift-compliance-must-gather-rhel8Affected
Confidential Compute Attestationbuild-of-trustee/trustee-must-gather-rhel9Not affected
341 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-71556.

Attack patterns (CAPEC)

  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-132 Symlink Attack Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON