CVE-2026-41506 go-git Credential leak via cross-host redirect in smart HTTP transport

Medium 4.7 Published Updated

Attackers can steal HTTP authentication credentials when go-git follows cross-host redirects during clone or fetch operations.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-41506?

CVE-2026-41506 is a medium-severity vulnerability in go-git, published on 8 May 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-522

Which versions are affected by CVE-2026-41506?

5 open source packages ship an affected version, including github.com/go-git/go-git/v5 and github.com/go-git/go-git/v6. It affects 1 product.

PackageAffectedFixed in
github.com/go-git/go-git/v5 GoAll versions5.18.0
github.com/go-git/go-git/v5 GoAll versions5.18.0
github.com/go-git/go-git/v5 GoAll versions5.18.0
github.com/go-git/go-git/v6 GoAll versions6.0.0-alpha.2
github.com/go-git/go-git/v6 GoAll versions6.0.0-alpha.2
Linux distribution packages (2)
syft Red Hat:hummingbird:1All versions0:1.44.0-0.3.hum1
amazon-ssm-agent openSUSE:TumbleweedAll versions3.3.4268.0-2.1

Products include Go-Git Project Go-Git.

How do I fix CVE-2026-41506?

Upgrade github.com/go-git/go-git/v5 to 5.18.0 or later.

Is CVE-2026-41506 being exploited?

There is no known exploitation of CVE-2026-41506 in the wild and no public exploit code.

Sources

Also known as CLEANSTART-2026-EZ09259, CLEANSTART-2026-LM14651, CLEANSTART-2026-WN28156, CLEANSTART-2026-ZC93700, DEBIAN-CVE-2026-41506, GHSA-3xc5-wrhm-f963 and 133 more.

Is CVE-2026-41506 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free