CVE-2026-71557 json
go-git: Malicious reference names may modify files outside the reference storage
published 3mo ago modified 2mo ago also EUVD-2026-54527 , GHSA-qgq7-7hm3-q39j , GO-2026-6214
- cvss
- 6.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 36%
- public exploits
- 0
- none known
Summary
go-git is an extensible git implementation library written in pure Go. Prior to 5.19.2 and 6.0.0-alpha.5, reference names are not sanitized before being used to construct on-disk paths under the reference storage directory, so a maliciously crafted reference name (for example containing directory-traversal sequences) can cause go-git to write files outside the intended reference storage directory. Versions 5.19.2 and 6.0.0-alpha.5 fix the issue.
Patch / fix
- go github.com/go-git/go-git/v5 5.19.2
- go github.com/go-git/go-git/v6 6.0.0-alpha.5
- go-git_project go-git 5.19.2, 6.0.0-alpha.5
- golang-github-go-git-go-git Debian 14 5.19.2-1
- golang-github-go-git-go-git-v6 Debian 14 6.0.0~alpha.5-1
debian advisories DEBIAN-CVE-2026-71557
- grype hummingbird 1 0.119.0-0.1.hum1
- syft hummingbird 1 1.52.0-0.1.hum1
- trivy hummingbird 1 0.74.0-0.3.hum1
- kube-state-metrics hummingbird 1 2.20.0-0.2.hum1
red hat advisories RHSA-2026:68806RHSA-2026:68808RHSA-2026:68281RHSA-2026:66208
- terraform-provider-aws SLE Module for Public Cloud 15 SP5, SLE Module for Public Cloud 15 SP4 3.11.0-150200.6.29.2
- terraform-provider-tls SLE Module for Public Cloud 15 SP5, SLE Module for Public Cloud 15 SP4 3.0.0-150200.5.26.2
- terraform-provider-helm SLE Module for Public Cloud 15 SP5, SLE Module for Public Cloud 15 SP4 2.9.0-150200.6.34.2
- terraform-provider-null SLE Module for Public Cloud 15 SP5, SLE Module for Public Cloud 15 SP4 3.0.0-150200.6.32.2
- terraform-provider-local SLE Module for Public Cloud 15 SP5, SLE Module for Public Cloud 15 SP4 2.0.0-150200.6.30.2
- terraform-provider-google SLE Module for Public Cloud 15 SP5, SLE Module for Public Cloud 15 SP4 3.43.0-150200.6.23.2
- terraform-provider-random SLE Module for Public Cloud 15 SP5, SLE Module for Public Cloud 15 SP4 3.0.0-150200.6.26.2
- terraform-provider-azurerm SLE Module for Public Cloud 15 SP5, SLE Module for Public Cloud 15 SP4 2.32.0-150200.6.23.2
suse advisories SUSE-SU-2026:4628-1SUSE-SU-2026:24148-1SUSE-SU-2026:4408-1SUSE-SU-2026:4286-1SUSE-SU-2026:4082-1SUSE-SU-2026:23625-1
- alloy openSUSE Leap 16.0 1.19.2-160000.1.1
- amazon-ssm-agent openSUSE Leap 16.0 3.3.5390.0-160000.1.1
- alloy openSUSE Tumbleweed 1.19.2-1.1
- govulncheck-vulndb openSUSE Leap 16.0 0.0.20260827T195228-160000.1.1
opensuse advisories openSUSE-SU-2026:22032-1openSUSE-SU-2026:21884-1openSUSE-SU-2026:11803-1openSUSE-SU-2026:21761-1
- github.com/go-git/go-git@4a0e66d commit
- github.com/go-git/go-git@da9f7d8 commit
- github.com/go-git/go-git#2247 pull request
- github.com/go-git/go-git#2254 pull request
- github.com/go-git/go-git/releases/tag/v5.19.2 release
- github.com/go-git/go-git/releases/tag/v6.0.0-alpha.5 release
Is CVE-2026-71557 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-71557 updated cvss 6.3
github.com/go-git/go-git: github.com/go-git/go-git/v5: go-git: Unauthorized file modification via directory traversal in reference names
-
Red Hat Assisted Installer for Red Hat OpenShift Container Platform 2 rhai/assisted-installer-controller-rhel9, assisted/agent-preinstall-image-builder-rhel9 Red Hat Builds for Red Hat OpenShift openshift-builds/openshift-builds-waiters-rhel9, openshift-builds/openshift-builds-webhook-rhel9, openshift-builds/openshift-builds-controller-rhel9, openshift-builds/openshift-builds-git-cloner-rhel9, openshift-builds/openshift-builds-image-bundler-rhel9, openshift-builds/openshift-builds-image-processing-rhel9 Red Hat Compliance Operator compliance/openshift-compliance-must-gather-rhel8 Red Hat Confidential Compute Attestation build-of-trustee/trustee-must-gather-rhel9, openshift-sandboxed-containers/osc-must-gather-rhel9, openshift-sandboxed-containers/osc-podvm-builder-rhel9 Red Hat Custom Metric Autoscaler operator for Red Hat Openshift custom-metrics-autoscaler/custom-metrics-autoscaler-rhel9-operator Red Hat DPU kit for NVIDIA dpu-kit-for-nvidia/must-gather-rhel10affected: workaround, no fix available “Fix deferred”
+34 more productsfewer
Red Hat Exploit Intelligence exploit-intelligence/agent-client-rhel9, exploit-intelligence-tech-preview/agent-client-rhel9, exploit-intelligence-tech-preview/vulnerability-analysis-rhel9 Red Hat External Secrets Operator for Red Hat OpenShift external-secrets-operator/external-secrets-rhel9 Red Hat Kernel Module Management Operator for Red Hat Openshift kmm/kernel-module-management-must-gather-rhel9 Red Hat Logging Subsystem for Red Hat OpenShift openshift-logging/cluster-logging-rhel9-operator Red Hat Logical Volume Manager Storage lvms4/lvms-must-gather-rhel8, lvms4/lvms-must-gather-rhel9 Red Hat Machine Deletion Remediation Operator workload-availability/machine-deletion-remediation-rhel9-operator, workload-availability/machine-deletion-remediation-operator-bundle Red Hat Migration Toolkit for Containers rhmtc/openshift-migration-log-reader-rhel8, rhmtc/openshift-migration-must-gather-rhel8 Red Hat Migration Toolkit for Virtualization migration-toolkit-virtualization/mtv-must-gather-rhel8, migration-toolkit-virtualization/mtv-must-gather-rhel9 Red Hat Multicluster Engine for Kubernetes multicluster-engine/must-gather-rhel9, multicluster-engine/assisted-service-8-rhel8, multicluster-engine/assisted-service-9-rhel9, multicluster-engine/cluster-image-set-controller-rhel9, multicluster-engine/assisted-installer-controller-rhel8, multicluster-engine/assisted-installer-controller-rhel9 Red Hat Node HealthCheck Operator workload-availability/node-healthcheck-must-gather-rhel8, workload-availability/node-healthcheck-must-gather-rhel9 Red Hat OpenShift API for Data Protection oadp/oadp-mustgather-rhel9 Red Hat OpenShift Developer Tools and Services ocp-tools-4/jenkins-rhel8, ocp-tools-4/jenkins-rhel9, ocp-tools-4/jenkins-agent-base-rhel8, ocp-tools-4/jenkins-agent-base-rhel9 Red Hat OpenShift Lightspeed openshift-lightspeed/lightspeed-agentic-sandbox-rhel9 Red Hat OpenShift Pipelines openshift-pipelines/pipelines-resolvers-rhel8 Red Hat OpenShift Serverless openshift-serverless-1/kn-client-kn-rhel9, openshift-serverless-clients 1.17.0-4.el9, openshift-serverless-1/serverless-must-gather-rhel9, openshift-serverless-1/kn-plugin-func-func-util-rhel9 Red Hat OpenShift Service Mesh 3 openshift-service-mesh/istio-must-gather-rhel9 Red Hat Pen Drive Powered by Red Hat Lightspeed pen-drive/pen-drive-scanner-rhel9 Red Hat Power monitoring for Red Hat OpenShift openshift-power-monitoring/power-monitoring-rhel9-operator Red Hat Advanced Cluster Management for Kubernetes 2 flightctl-agent, flightctl-selinux, flightctl 0.5.1-2.el8fc, rhacm2/acm-must-gather-rhel9, rhacm2/kube-state-metrics-rhel9, rhacm2/submariner-rhel9-operator, +2 more Red Hat AI Inference Server rhaiis/vllm-cpu-rhel9, rhaiis/vllm-tpu-rhel9 Red Hat Ansible Automation Platform 2 ansible-automation-platform-24/ee-supported-rhel8, ansible-automation-platform-24/ee-supported-rhel9, ansible-automation-platform-25/ee-supported-rhel8, ansible-automation-platform-25/ee-supported-rhel9, ansible-automation-platform-26/ee-supported-rhel9, ansible-automation-platform-27/ee-supported-rhel9, +8 more Red Hat Build of Kueue kueue/kueue-must-gather-rhel9 Red Hat Ceph Storage 9 rhceph/alloy-rhel10 Red Hat Certification Program for Red Hat Enterprise Linux 9 rhcertification/redhat-certification-baremetal Red Hat Developer Hub 1 rhdh/rhdh-must-gather-rhel9 Red Hat Edge Manager 1 flightctl 0.5.1-2.el8fc, rhem/flightctl-api-rhel9, rhem/flightctl-api-rhel10, rhem/flightctl-worker-rhel9, rhem/flightctl-worker-rhel10, rhem/flightctl-db-setup-rhel9, +19 more Red Hat Enterprise Linux 8 grafana, grafana-loki, grafana-mssql, grafana-mysql, grafana-selinux, grafana-graphite, +8 more Red Hat Enterprise Linux 9 grafana, grafana-selinux Red Hat OpenShift AI (RHOAI) rhoai/rhai-cli-rhel9, rhoai/odh-must-gather-rhel9, rhoai/odh-th06-cpu-torch291-py312-rhel9, rhoai/odh-th06-cuda130-torch291-py312-rhel9, rhoai/odh-ai-gateway-payload-processing-e2e-rhel9, rhoai/odh-pipeline-runtime-minimal-cpu-py312-rhel9, +19 more Red Hat OpenShift Container Platform 4 cri-o, openshift, openshift-clients, openshift-kubelet, openshift4/ose-cli, openshift-hyperkube, +73 more Red Hat OpenShift Container Platform 5 cri-o, openshift-clients, openshift-kni/commatrix, openshift5/ose-cli-rhel9, openshift5/cnf-tests-rhel9, openshift5/ose-tests-rhel9, +35 more Red Hat Openshift Data Foundation 4 odf4/mcg-core-rhel9, odf4/odf-must-gather-rhel9, odf4/odf-multicluster-rhel9-operator Red Hat OpenShift Dev Spaces devspaces/udi-rhel9 Red Hat OpenShift Dev Workspaces Operator devworkspace/devworkspace-rhel9-operator, devworkspace/devworkspace-operator-bundle, devworkspace/devworkspace-project-clone-rhel9
7 more affected, 1 more fixed, 4 more not affected in the full advisory
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 3mo ago
Exploit prediction
0.41% chance of exploitation in the next 30 days, higher than 36% of all scored CVEs (FIRST EPSS, 2026-11-11).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L |
| GitHub | 3.1 | 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/go-git/go-git/v5 | <5.19.2 |
5.19.2 |
| go | github.com/go-git/go-git/v6 | <6.0.0-alpha.5 |
6.0.0-alpha.5 |
Affected products
- go-git go-git
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/go-git/go-git/pull/2247
web, patch
-
github.com
/go-git/go-git/pull/2254
web, patch
-
github.com
/go-git/go-git/commit/4a0e66d555de5f9a30c31e2df64f445f42bd01e7
web
-
github.com
/go-git/go-git/commit/da9f7d8a0e98b475600177348d6ece384a370f36
web
-
github.com
/go-git/go-git/security/advisories/GHSA-qgq7-7hm3-q39j
web, advisory
-
github.com
/go-git/go-git/releases/tag/v5.19.2
web
-
github.com
/go-git/go-git/releases/tag/v6.0.0-alpha.5
web
-
github.com
/go-git/go-git
package
Sources
- CVE List CVE-2026-71557
- GitHub Advisory GHSA-qgq7-7hm3-q39j
- NVD CVE-2026-71557
- OSV GO-2026-6214
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.