Insufficiently protected credentials in go-git - CVE-2026-41506

 

Insufficiently protected credentials in go-git - CVE-2026-41506

Published: April 17, 2026


Vulnerability identifier: #VU126456
CSH Severity: Medium
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-41506
CWE-ID: CWE-522
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to disclose sensitive information.

The vulnerability exists due to insufficiently protected credentials in smart HTTP transport when following a cross-host redirect during smart-HTTP clone and fetch operations. A remote attacker can cause the client to follow a redirect to a different host and capture reused HTTP authentication credentials to disclose sensitive information.

User interaction is required to initiate the clone or fetch operation, and the issue occurs when the initial /info/refs request is redirected to a different host.


Affected software

go-git

How to mitigate CVE-2026-41506

Install security update from vendor's website.

go-git - update to 5.18.0

External References

Related Security Bulletins