Skip to main content

go-git CVE-2026-41506

| EUVDEUVD-2026-28596 HIGH
Insufficiently Protected Credentials (CWE-522)
2026-05-08 security-advisories@github.com
7.4
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Lure victim to fetch from attacker-influenced Git URL
  2. Delivery
    Victim initiates smart-HTTP clone/fetch with credentials
  3. Exploit
    Server returns /info/refs redirect to attacker host
  4. Execution
    go-git reuses auth on redirected request
  5. Persist
    Attacker captures leaked Authorization header
  6. Impact
    Replay credentials to access victim repositories

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V6 - Authentication Credential protection in transit/storage
Exploitation Conditions

Exploitation requires that a client using go-git (prior to 5.18.0 / 6.0.0-alpha.2) perform a smart-HTTP clone or fetch with HTTP authentication against a remote whose initial /info/refs response the attacker can make return a redirect to a different, attacker-controlled host - go-git then updates the session endpoint and reuses the original Authorization credentials on the redirected request. Per the vendor, this only arises when interacting with untrusted, attacker-influenced, or misconfigured Git servers, or over unsecured plaintext HTTP; clients that use only trusted remotes such as GitHub or GitLab over HTTPS are NOT affected. Limiting factors: user/application must initiate the clone or fetch (UI:R) and must send credentials to a non-trusted or cross-host endpoint, so default use against pinned trusted TLS remotes is not exploitable; the patched versions default to followRedirects=initial to close the cross-host leak.

Impact

This is a genuine but conditional credential-exposure issue, not a broadly wormable emergency. The signals are internally consistent and point to moderate, targeted risk: CVSS 3.1 (7.4) reflects AV:N/AC:L/PR:N but critically UI:R and S:C - the high score is driven largely by the scope change (credentials leaking to a different host) rather than by trivial mass exploitability. EPSS is very low (0.05%, 14th percentile), SSVC reports Exploitation: none, Automatable: no, Technical Impact: partial, and there is no CISA KEV listing - all consistent with no observed exploitation. The vuln.today priority is 'this_week', which is a patch-promptly signal, not act_now/emergency. The key limiter the CVSS vector does not capture is contextual: per the GHSA advisory, clients using only trusted remotes (GitHub/GitLab) over HTTPS are not affected; exploitation requires interacting with an untrusted, attacker-influenced, or misconfigured Git server, or using plaintext HTTP. Net: a real priority for anyone whose Go tooling clones/fetches from arbitrary or user-supplied URLs (CI systems, package/dependency fetchers, GitOps agents), but low real-world risk for deployments pinned to trusted hosts over TLS. No conflicting signals were identified; the main uncertainty is which downstream Go applications embed go-git and expose it to untrusted remotes.

Exploit ScenarioDerived

A victim's Go application (or CI pipeline) using go-git performs a smart-HTTP clone or fetch, carrying an Authorization header, against a URL an attacker controls or can influence. The attacker's server responds to the initial /info/refs request with an HTTP redirect to a host the attacker controls; go-git updates the session endpoint and reuses the original credentials, sending the Authorization header to the attacker's host, which captures and replays it. No public exploit identified at time of analysis, though the mechanism is clearly documented in the GHSA advisory.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Nov 11, 2026

Credential leakage in go-git's smart-HTTP transport (versions up to and including 5.17.2 in the v5 line, and 6.0.0-alpha.1 in the v6 line) causes the library to reuse HTTP authentication when a remote's initial /info/refs response redirects to a different host, sending the original Authorization headers to the redirect target. Exploitation is conditional: a user or application must initiate a clone or fetch with credentials against an untrusted, attacker-influenced or misconfigured Git server (or over plaintext HTTP), so clients that only talk to trusted remotes such as GitHub or GitLab over HTTPS are not affected. There is no confirmed active exploitation (not in CISA KEV), no public exploit code identified at time of analysis, and EPSS is low at 0.05% (14th percentile), though the CVSS 3.1 base score is 7.4 with scope change and high confidentiality impact.

Earlier versions of this analysis (1)
v1 May 08, 2026 - 14:32 CVSS 4.7

go-git versions prior to 5.18.0 and 6.0.0-alpha.2 leak HTTP authentication credentials when following cross-host redirects during smart-HTTP clone and fetch operations. Remote unauthenticated attackers controlling a redirect target can capture credentials intended for the original repository host. User interaction (initiating a clone/fetch to a malicious or compromised server) is required. Vendor-released patches are available in v5.18.0 and v6.0.0-alpha.2.

RemediationAI

Vendor-released patch: upgrade to go-git v5.18.0 (github.com/go-git/go-git/v5) or v6.0.0-alpha.2 (github.com/go-git/go-git/v6); the advisory states that versions prior to v5 are likely affected and should be moved to a supported release. Per the vendor, the patched versions add support for configuring http followRedirects, with the default now set to "initial" - matching upstream Git behaviour - while applications can opt into FollowRedirects or NoFollowRedirects programmatically, so consumers that must follow cross-host redirects need to make that choice explicitly. Because the flaw only manifests when credentials are sent to untrusted, attacker-influenced, or misconfigured Git servers (or over unsecured plaintext HTTP), the vendor notes that clients using go-git exclusively with trusted remotes such as GitHub or GitLab over HTTPS are not affected and that such unsecured or untrusted configurations already carry broader interception and tampering risk. Advisory references: https://github.com/go-git/go-git/security/advisories/GHSA-3xc5-wrhm-f963, https://github.com/go-git/go-git/releases/tag/v5.18.0, https://github.com/go-git/go-git/releases/tag/v6.0.0-alpha.2, and Red Hat erratum https://access.redhat.com/errata/RHSA-2026:17669 for distribution-packaged copies.

Affected VersionsENISA

go-git < 5.18.0
go-git < 6.0.0-alpha.2

Affected Packages

go github.com/go-git/go-git/v5 fix: 5.18.0
go github.com/go-git/go-git/v6 fix: 6.0.0-alpha.2
euvd go_git fix: 5.18.0, 6.0.0-alpha.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

go-git is a pure-Go implementation of Git used as a library by Go applications and tooling; this flaw lives in its smart-HTTP transport layer (plumbing/transport/http), the code path that performs the /info/refs discovery request before a clone or fetch. When the server answers that request with a redirect to a different host, go-git updates the session endpoint to the redirected location and reuses the original authentication context for subsequent requests, so an Authorization header intended for the original remote is transmitted to the redirect target. The root cause class is CWE-522 (Insufficiently Protected Credentials): credentials are not scoped to the host they were issued for. The upstream fix (PR 2004, released in v5.18.0 and v6.0.0-alpha.2) adds support for a configurable followRedirects policy mirroring git's http.followRedirects, with the default set to "initial" and programmatic opt-in to FollowRedirects or NoFollowRedirects. Per the vendor advisory, the exposure depends on the client's redirect-following behaviour and on whether credentials are being sent to a server the client does not trust; trusted remotes over HTTPS are explicitly out of scope. The supplied CVSS vector (AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N) reflects a network-reachable, no-privilege-required issue that requires user interaction to trigger and results in confidentiality-only impact crossing a security boundary; the sources do not describe any integrity or availability impact.

Know when Go Git gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 7.4 HIGH
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
vuln.today AI 7.4 HIGH

Remote, no attacker privileges, but the victim must initiate a clone/fetch (UI:R); credentials cross a trust boundary to another host (S:C, C:H); no integrity or availability impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N
SUSE 4.7 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N
Red Hat 6.5 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

4
Analysis Updated
Nov 11, 2026 - 20:39 vuln.today
v2 - CVSS changed
Severity Changed
Nov 11, 2026 - 20:22 NVD
MEDIUM HIGH
CVSS changed
Nov 11, 2026 - 20:22 NVD
4.7 (MEDIUM) 7.4 (HIGH)
CVE Published
May 08, 2026 - 14:16 nvd
MEDIUM 4.7

DescriptionNVD

go-git is an extensible git implementation library written in pure Go. Prior to versions 5.18.0 and 6.0.0-alpha.2, go-git may leak HTTP authentication credentials when following redirects during smart-HTTP clone and fetch operations. This issue has been patched in versions 5.18.0 and 6.0.0-alpha.2.

Executive ViewAI

Why It Matters

CVE-2026-41506 is a high-severity credential leakage vulnerability in the go-git library that could expose authentication tokens to untrusted Git servers under specific conditions. While no active exploitation has been detected, any development or CI/CD pipeline using go-git to interact with third-party or misconfigured repositories faces potential unauthorized access to source code and systems. Leadership should prioritize remediation to prevent credential theft that could lead to broader compromise.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 86% exploitable
Prevalence
Medium
popular pure-Go git library embedded in many Go tools and CI pipelines
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

37
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +37
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SLES15-SP6-CHOST-BYOS-GCE Fixed
SLES15-SP7-CHOST-BYOS-GCE Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 12 Fixed
SUSE Linux Enterprise High Performance Computing 12 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy