cve.bz

CVE-2026-41506 go-git project go-git: Insufficiently Protected Credentials

7.4 highEPSS 0.3%Fix available

High (7.4) in go-git project go-git. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/go-git/go-git/v5 5.18.0.

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

Severity

CVSS 3.1

7.4 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 18th 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-05-11. 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-522 Insufficiently Protected Credentials
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-41506 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-41506?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-41506?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-41506 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 NVD's CPE matches.

ProductAffected
go-git_project:go-gitbefore 5.18.0
go-git_project:go-git6.0.0:alpha1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-3xc5-wrhm-f963Gogithub.com/go-git/go-git/v5<5.18.05.18.0
GHSA-3xc5-wrhm-f963Gogithub.com/go-git/go-git/v6<6.0.0-alpha.26.0.0-alpha.2
GO-2026-5105Gogithub.com/go-git/go-git/v5<5.18.05.18.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13golang-github-go-git-go-gitno fix listedDEBIAN-CVE-2026-41506
Debian14golang-github-go-git-go-git5.19.1-1DEBIAN-CVE-2026-41506
Debian14golang-github-go-git-go-git-v66.0.0~alpha4-1DEBIAN-CVE-2026-41506
Ubuntu25.10, 26.10, Pro:22.04:LTS and 2 moregolang-github-go-git-go-gitno fix listedUBUNTU-CVE-2026-41506
Red Hathummingbird:1syft0:1.44.0-0.3.hum1RHSA-2026:17669
Red Hathummingbird:1trivy0:0.72.0-0.1.hum1RHSA-2026:35111
SUSELinux Enterprise Module for Basesystem 15 SP7alloy1.18.0-150700.15.26.1SUSE-SU-2026:4210-1
SUSELinux Enterprise Module for Public Cloud 12amazon-ssm-agent3.3.4624.0-4.49.1SUSE-SU-2026:2468-1
SUSELinux Enterprise Module for Public Cloud 12google-osconfig-agent20260615.01-1.47.1SUSE-SU-2026:2665-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-aws3.11.0-150200.6.18.1SUSE-SU-2026:3056-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-azurerm2.32.0-150200.6.12.1SUSE-SU-2026:3056-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-external2.0.0-150200.6.12.1SUSE-SU-2026:3056-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-google3.43.0-150200.6.12.1SUSE-SU-2026:3056-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-helm2.9.0-150200.6.23.1SUSE-SU-2026:3056-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-kubernetes1.13.2-150200.6.12.1SUSE-SU-2026:3056-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-local2.0.0-150200.6.17.1SUSE-SU-2026:3056-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-null3.0.0-150200.6.18.1SUSE-SU-2026:3056-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5terraform-provider-random3.0.0-150200.6.15.1SUSE-SU-2026:3056-1
8 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 16.0alloy1.18.0-160000.1.1openSUSE-SU-2026:21899-1
openSUSELeap 16.0amazon-ssm-agent3.3.4624.0-160000.1.1openSUSE-SU-2026:21079-1
openSUSELeap 16.0google-osconfig-agent20260615.01-160000.1.2openSUSE-SU-2026:21210-1
openSUSELeap 16.0govulncheck-vulndb0.0.20260727T201416-160000.1.1openSUSE-SU-2026:21551-1
openSUSETumbleweedalloy1.18.0-1.1openSUSE-SU-2026:11438-1
openSUSETumbleweedamazon-ssm-agent3.3.4268.0-2.1openSUSE-SU-2026:10765-1
openSUSETumbleweedcheat5.1.0-2.1openSUSE-SU-2026:10967-1
openSUSETumbleweedgit-bug0.10.1-4.1openSUSE-SU-2026:10803-1
openSUSETumbleweedgoogle-osconfig-agent20260511.00-1.1openSUSE-SU-2026:10771-1
openSUSETumbleweedtrivy0.70.0-2.1openSUSE-SU-2026:10830-1

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. 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 Moderate.

Red Hat's statement

Red Hat has rated this flaw as Moderate because go-git may disclose HTTP authentication credentials when following redirects during smart HTTP clone and fetch operations but successful exploitation requires a user to interact with a malicious repository or redirect chain, and an attacker must control the redirect target to capture the exposed credentials. The impact is limited to the disclosure of authentication credentials and does not directly result in code execution, privilege escalation, or system compromise. Therefore, this issue is considered to have a moderate security impact.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Hardened Imagessyft-main-1.44.0-0.3.hum1Fixed 2026-05-14RHSA-2026:17669
Red Hat Hardened Imagestrivy-main-0.72.0-0.1.hum1Fixed 2026-07-02RHSA-2026:35111
Red Hat Openshift Data Foundation 4.22odf4/cephcsi-rhel9:1782932114Fixed 2026-07-09RHSA-2026:37387
Red Hat Openshift Data Foundation 4.22odf4/cephcsi-rhel9-operator:1782931768Fixed 2026-07-09RHSA-2026:37387
Red Hat Openshift Data Foundation 4.22odf4/devicefinder-rhel9:1782932104Fixed 2026-07-09RHSA-2026:37387
Red Hat Openshift Data Foundation 4.22odf4/mcg-core-rhel9:1783536000Fixed 2026-07-09RHSA-2026:37387
Red Hat Openshift Data Foundation 4.22odf4/mcg-rhel9-operator:1783535989Fixed 2026-07-09RHSA-2026:37387
Red Hat Openshift Data Foundation 4.22odf4/ocs-client-console-rhel9:1783536515Fixed 2026-07-09RHSA-2026:37387
Red Hat Openshift Data Foundation 4.22odf4/ocs-client-rhel9-operator:1782932521Fixed 2026-07-09RHSA-2026:37387
Red Hat Openshift Data Foundation 4.22odf4/ocs-metrics-exporter-rhel9:1783018461Fixed 2026-07-09RHSA-2026:37387
Assisted Installer for Red Hat OpenShift Container Platform 2assisted/agent-preinstall-image-builder-rhel9Fix deferred
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-controller-rhel9Fix deferred
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-git-cloner-rhel9Fix deferred
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-image-bundler-rhel9Fix deferred
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-image-processing-rhel9Fix deferred
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-waiters-rhel9Fix deferred
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-webhook-rhel9Fix deferred
Confidential Compute Attestationopenshift-sandboxed-containers/osc-must-gather-rhel9Fix deferred
Exploit Intelligenceexploit-intelligence-tech-preview/agent-client-rhel9Fix deferred
Exploit Intelligenceexploit-intelligence-tech-preview/vulnerability-analysis-rhel9Fix deferred
205 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-41506.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-522 (13).

References

Check your stackJSON