CVE-2026-41506

high
Published 2026-05-08 ยท Modified 2026-05-12
CVSS v3
7.4
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
7.4

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.

Predictions

Exploit likelihood
82%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

Mitigation details

Source: Debian Security Tracker ยท View original โ†— ยท DFSG

CVE-2026-41506 NameCVE-2026-41506 Descriptiongo-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. SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec,โ€ฆ

CVE-2026-41506

NameCVE-2026-41506
Descriptiongo-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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1136095

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
golang-github-go-git-go-git (PTS)bookworm5.4.2-3vulnerable
trixie5.14.0-1vulnerable
forky, sid5.19.1-1fixed
golang-github-go-git-go-git-v6 (PTS)forky6~git20260305.2083cf94-3vulnerable
sid6.0.0~alpha.4-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
golang-github-go-git-go-gitsource(unstable)5.19.1-11136095
golang-github-go-git-go-git-v6source(unstable)6.0.0~alpha4-1

Notes

https://github.com/go-git/go-git/security/advisories/GHSA-3xc5-wrhm-f963
Fixed by: https://github.com/go-git/go-git/commit/bcd20a9c525826081262a06a9ed9c3167abfcd53 (v5.18.0)

Home - Debian Security - Source (Git)

Apply commands

text fix
Notes
https://github.com/go-git/go-git/security/advisories/GHSA-3xc5-wrhm-f963Fixed by: https://github.com/go-git/go-git/commit/bcd20a9c525826081262a06a9ed9c3167abfcd53 (v5.18.0)

OS impact

suse SUSE Affected 1 release
VersionStatusFixed in
โ€” Affected โ€”
debian Debian Mixed 4 releases
VersionStatusFixed in
trixie Affected โ€”
sid Fixed 5.19.1-1
forky Fixed 5.19.1-1
bookworm Affected โ€”

Package impact

EcosystemPackageVulnerableFixed
golang Gogithub.com/go-git/go-git/v5<5.18.05.18.0
golang Gogithub.com/go-git/go-git/v6<6.0.0-alpha.26.0.0-alpha.2
golang GOgithub.com/go-git/go-git/v6<= 6.0.0-alpha.16.0.0-alpha.2
golang GOgithub.com/go-git/go-git/v5<= 5.17.25.18.0

Application impact

VendorProductVersionsFixed
go-git_projectgo-git{"endExcluding":"5.18.0"}5.18.0
go-git_projectgo-git6.0.0

References

CWEs

CWE-522

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.