Read the docs
TI-2026-33320 Aliases CVE-2026-45571GHSA-crhj-59gh-8x96

go-git: Crafted repositories may modify main and submodule .git directories

Priority LOW 24CWE-22Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
None · Low · Low
Fix status
Fixed

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.1 and 6.0.0-alpha.4, a path validation issue in go-git could allow crafted repository data to affect files outside the intended checkout target, including the repository's .git directory. These validations were introduced in upstream Git years ago, so the vulnerability arose from go-git drifting from those checks. This vulnerability is fixed in 5.19.1 and 6.0.0-alpha.4.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00297 22nd percentileScored 2026-11-07
Fix Fixed go-git (go-git): 5.19.1, 6.0.0-alpha.4github.com/go-git/go-git/v5 (Go): 5.19.1+1 more productRed Hat: 1 advisory

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

VendorProductAffected versionsFixed inStatusSource
go-gitgo-gitbefore 5.19.1; 6.0.0-alpha.1 to before 6.0.0-alpha.45.19.1, 6.0.0-alpha.4Patch availableCNA
—github.com/go-git/go-git/v5 (Go)before 5.19.15.19.1Patch availableGHSA-crhj-59gh-8x96
—github.com/go-git/go-git/v6 (Go)before 6.0.0-alpha.46.0.0-alpha.4Patch availableGHSA-crhj-59gh-8x96
—github.com/go-git/go-git (Go)up to 44.7.0—No fix listedGHSA-crhj-59gh-8x96
  • go-git Vendorgo-git Affected before 5.19.1; 6.0.0-alpha.1 to before 6.0.0-alpha.4 Fixed in 5.19.1, 6.0.0-alpha.4 Patch available CNA
  • github.com/go-git/go-git/v5 (Go) Vendor— Affected before 5.19.1 Fixed in 5.19.1 Patch available GHSA-crhj-59gh-8x96
  • github.com/go-git/go-git/v6 (Go) Vendor— Affected before 6.0.0-alpha.4 Fixed in 6.0.0-alpha.4 Patch available GHSA-crhj-59gh-8x96
  • github.com/go-git/go-git (Go) Vendor— Affected up to 44.7.0 Fixed in — No fix listed GHSA-crhj-59gh-8x96

CPE configurations NVD · 4

CPEVersionsRoleVendor
cpe:2.3:a:go-git_project:go-git:*:*:*:*:*:go:*:*before 5.19.1Vulnerablego-git
cpe:2.3:a:go-git_project:go-git:6.0.0:alpha1:*:*:*:go:*:*6.0.0 alpha1Vulnerablego-git
cpe:2.3:a:go-git_project:go-git:6.0.0:alpha2:*:*:*:go:*:*6.0.0 alpha2Vulnerablego-git
cpe:2.3:a:go-git_project:go-git:6.0.0:alpha3:*:*:*:go:*:*6.0.0 alpha3Vulnerablego-git
  • cpe:2.3:a:go-git_project:go-git:*:*:*:*:*:go:*:* Versions before 5.19.1 Vulnerable ·go-git
  • cpe:2.3:a:go-git_project:go-git:6.0.0:alpha1:*:*:*:go:*:* Versions 6.0.0 alpha1 Vulnerable ·go-git
  • cpe:2.3:a:go-git_project:go-git:6.0.0:alpha2:*:*:*:go:*:* Versions 6.0.0 alpha2 Vulnerable ·go-git
  • cpe:2.3:a:go-git_project:go-git:6.0.0:alpha3:*:*:*:go:*:* Versions 6.0.0 alpha3 Vulnerable ·go-git

Remediation

  • Fix · CNA go-git (go-git) Fixed in 5.19.1, 6.0.0-alpha.4
  • Fix · GHSA-crhj-59gh-8x96 github.com/go-git/go-git/v5 (Go) Fixed in 5.19.1 Advisory →
  • Fix · GHSA-crhj-59gh-8x96 github.com/go-git/go-git/v6 (Go) Fixed in 6.0.0-alpha.4 Advisory →

Red Hat 1 advisory

  • RHSA-2026:37387 Released 2026-07-09 · Red Hat rating Important
    Red Hat OpenShift Data Foundation 4.22.0 security, enhancement & bug fix update
    • Red Hat Openshift Data Foundation 4.22 registry.redhat.io/odf4/cephcsi-rhel9, registry.redhat.io/odf4/cephcsi-rhel9-operator, registry.redhat.io/odf4/devicefinder-rhel9 +24

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Openshift Data Foundation 4.22Fixed RHSA-2026:37387
Not affected: 1 product
  • Red Hat Openshift Data Foundation 4.22

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-45571
  2. 2026-10-03 Alias added: GHSA-crhj-59gh-8x96

References

  • 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-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
  • TI-2026-32877 go-git: Improper parsing of specially crafted objects may lead to inconsistent interpretation compared to upstream Git CVSS 4.0HIGH 7.0
See all 10 →

Sources