go-git: Malicious reference names may modify files outside the reference storage
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · Low
- Fix status
- Partial Red Hat: 1 fixed, 47 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| go-git | go-git | before 5.19.2; 6.0.0-alpha.1 to before 6.0.0-alpha.5 | 5.19.2, 6.0.0-alpha.5 | Patch available | CNA |
| — | github.com/go-git/go-git/v5 (Go) | before 5.19.2 | 5.19.2 | Patch available | GHSA-qgq7-7hm3-q39j |
| — | github.com/go-git/go-git/v6 (Go) | before 6.0.0-alpha.5 | 6.0.0-alpha.5 | Patch available | GHSA-qgq7-7hm3-q39j |
- go-git Vendorgo-git Affected before 5.19.2; 6.0.0-alpha.1 to before 6.0.0-alpha.5 Fixed in 5.19.2, 6.0.0-alpha.5 Patch available CNA
- github.com/go-git/go-git/v5 (Go) Vendor— Affected before 5.19.2 Fixed in 5.19.2 Patch available GHSA-qgq7-7hm3-q39j
- github.com/go-git/go-git/v6 (Go) Vendor— Affected before 6.0.0-alpha.5 Fixed in 6.0.0-alpha.5 Patch available GHSA-qgq7-7hm3-q39j
Remediation
- Fix · CNA go-git (go-git) Fixed in 5.19.2, 6.0.0-alpha.5
- Fix · GHSA-qgq7-7hm3-q39j github.com/go-git/go-git/v5 (Go) Fixed in 5.19.2 Advisory →
- Fix · GHSA-qgq7-7hm3-q39j github.com/go-git/go-git/v6 (Go) Fixed in 6.0.0-alpha.5 Advisory →
Red Hat 4 advisories
- RHSA-2026:68808 Released 2026-09-18 · Red Hat rating ImportantRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images syft-1.52.0-0.1.hum1@aarch64, syft-1.52.0-0.1.hum1@src, syft-1.52.0-0.1.hum1@x86_64
- RHSA-2026:68806 Released 2026-09-18 · Red Hat rating ImportantRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images grype-0.119.0-0.1.hum1@aarch64, grype-0.119.0-0.1.hum1@src, grype-0.119.0-0.1.hum1@x86_64
- RHSA-2026:68281 Released 2026-09-16 · Red Hat rating ModerateRed Hat Hardened Images RPMs Security Update
- Red Hat Hardened Images trivy-0.74.0-0.3.hum1@aarch64, trivy-0.74.0-0.3.hum1@src, trivy-0.74.0-0.3.hum1@x86_64
Show 1 more Red Hat advisories
- RHSA-2026:66208 Released 2026-09-09 · Red Hat rating ImportantRed Hat Hardened Images RPMs Security Update
- Red Hat Hardened Images kube-state-metrics-2.20.0-0.2.hum1@aarch64, kube-state-metrics-2.20.0-0.2.hum1@src, kube-state-metrics-2.20.0-0.2.hum1@x86_64
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Assisted Installer for Red Hat OpenShift Container Platform 2 | Affected | No fix yet: Fix deferred |
| Builds for Red Hat OpenShift | Affected | No fix yet: Fix deferred |
| Compliance Operator | Affected | No fix yet: Fix deferred |
| Confidential Compute Attestation | Affected | No fix yet: Fix deferred |
| Custom Metric Autoscaler operator for Red Hat Openshift | Affected | No fix yet: Fix deferred |
| DPU kit for NVIDIA | Affected | No fix yet: Fix deferred |
| Exploit Intelligence | Affected | No fix yet: Fix deferred |
| External Secrets Operator for Red Hat OpenShift | Affected | No fix yet: Fix deferred |
| Kernel Module Management Operator for Red Hat Openshift | Affected | No fix yet: Fix deferred |
| Logging Subsystem for Red Hat OpenShift | Affected | No fix yet: Fix deferred |
| Logical Volume Manager Storage | Affected | No fix yet: Fix deferred |
| Machine Deletion Remediation Operator | Affected | No fix yet: Fix deferred |
| Migration Toolkit for Containers | Affected | No fix yet: Fix deferred |
| Migration Toolkit for Virtualization | Affected | No fix yet: Fix deferred |
| Multicluster Engine for Kubernetes | Affected | No fix yet: Fix deferred |
| Node HealthCheck Operator | Affected | No fix yet: Fix deferred |
| OpenShift API for Data Protection | Affected | No fix yet: Fix deferred |
| OpenShift Developer Tools and Services | Affected | No fix yet: Fix deferred |
| OpenShift Lightspeed | Affected | No fix yet: Fix deferred |
| OpenShift Pipelines | Affected | No fix yet: Fix deferred |
| OpenShift Serverless | Affected | No fix yet: Fix deferred |
| OpenShift Service Mesh 3 | Affected | No fix yet: Fix deferred |
| Pen Drive Powered by Red Hat Lightspeed | Affected | No fix yet: Fix deferred |
| Power monitoring for Red Hat OpenShift | Affected | No fix yet: Fix deferred |
| Red Hat AI Inference Server | Affected | No fix yet: Fix deferred |
| Red Hat Advanced Cluster Management for Kubernetes 2 | Affected | No fix yet: Fix deferred |
| Red Hat Ansible Automation Platform 2 | Affected | No fix yet: Fix deferred |
| Red Hat Build of Kueue | Affected | No fix yet: Fix deferred |
| Red Hat Ceph Storage 9 | Affected | No fix yet: Fix deferred |
| Red Hat Certification Program for Red Hat Enterprise Linux 9 | Affected | No fix yet: Fix deferred |
| Red Hat Developer Hub 1 | Affected | No fix yet: Fix deferred |
| Red Hat Edge Manager 1 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 8 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 9 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift AI (RHOAI) | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Container Platform 5 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Dev Spaces | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Dev Workspaces Operator | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift GitOps | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Virtualization 4 | Affected | No fix yet: Fix deferred |
| Red Hat OpenStack Platform 16.2 | Affected | No fix yet: Fix deferred |
| Red Hat OpenStack Platform 17.1 | Affected | No fix yet: Fix deferred |
| Red Hat OpenStack Platform 18.0 | Affected | No fix yet: Fix deferred |
| Red Hat Openshift Data Foundation 4 | Affected | No fix yet: Fix deferred |
| Red Hat Trusted Artifact Signer | Affected | No fix yet: Fix deferred |
| Red Hat Web Terminal | Affected | No fix yet: Fix deferred |
| Red Hat Hardened Images | Fixed | RHSA-2026:66208, RHSA-2026:68281, RHSA-2026:68806, RHSA-2026:68808 |
Not affected: 4 products
- Builds for Red Hat OpenShift
- Red Hat Advanced Cluster Security 4
- Red Hat OpenStack Platform 16.2
- Red Hat Trusted Artifact Signer
Timeline
- 2026-10-02 Threatist record created from CVE-2026-71557
- 2026-10-03 Alias added: GHSA-qgq7-7hm3-q39j
- 2026-10-27 Affected versions changed · Red Hat
- 2026-11-06 Affected versions changed · Red Hat
References
Other 8
- https://github.com/go-git/go-git/security/advisories/GHSA-qgq7-7hm3-q39j
- https://github.com/go-git/go-git/pull/2247
- https://github.com/go-git/go-git/pull/2254
- https://github.com/go-git/go-git/commit/4a0e66d555de5f9a30c31e2df64f445f42bd01e7
- https://github.com/go-git/go-git/commit/da9f7d8a0e98b475600177348d6ece384a370f36
- https://github.com/go-git/go-git/releases/tag/v5.19.2
- https://github.com/go-git/go-git/releases/tag/v6.0.0-alpha.5
- https://github.com/go-git/go-git
More go-git vulnerabilities
- TI-2023-27070 Maliciously crafted Git server replies can lead to path traversal and RCE on go-git clients CVSS 3.1CRITICAL 9.8
- TI-2025-15573 go-git has an Argument Injection via the URL field CVSS 4.0CRITICAL 9.2
- TI-2025-15574 go-git clients vulnerable to DoS via maliciously crafted Git server replies CVSS 3.1HIGH 7.5
- TI-2026-32835 Billy: Path traversal vulnerabilities CVSS 3.1HIGH 8.1
- TI-2023-27069 Maliciously crafted Git server replies can cause DoS on go-git clients CVSS 3.1HIGH 7.5
- TI-2026-30091 go-git Credential leak via cross-host redirect in smart HTTP transport CVSS 3.1HIGH 7.4
Sources
- CVE-2026-71557 · CVE Program
- CVE-2026-71557 · NVD
- FIRST EPSS
- GHSA-qgq7-7hm3-q39j · GitHub Advisory Database · CC BY 4.0
- CVE-2026-71557 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences