CVE Database›Document archive›CVE-2026-41506

CVE-2026-41506

golang: github.com/go-git/go-git: go-git: Information disclosure of HTTP authentication credentials via redirects

Loading…

Severity

Moderate

Red Hat Product Security

6.5

CVSS 3.1

Review impact separately from score.

Published · May 8, 2026

Updated · October 10, 2026

Description

A flaw was found in go-git, an extensible Git implementation library for Go. This vulnerability allows an attacker to potentially obtain sensitive HTTP authentication credentials. This can occur when go-git follows redirects during smart-HTTP clone and fetch operations, leading to the unintended disclosure of user credentials.

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.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

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.

CVSS / CWE

CVSS 3.1 · 6.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

CWE-601 · URL Redirection to Untrusted Site ('Open Redirect')