CVE-2026-41506Go-git Project Go-git
High 7.4 No auth needed
Follow: this CVE · Go-git Project · Go-git Project Go-git We alert you by email or Slack (account required).
- Priority
- 59
- CVSS 3.1
- 7.4
- EPSS
- —
- Auth required
- No
- Published
- May 8, 2026
- Updated
- Nov 11, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-522
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Go-git.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/go-git/go-git/v5 |
< 5.18.0 |
5.18.0 |
go get github.com/go-git/go-git/v5@v5.18.0 |
| Go | github.com/go-git/go-git/v5 |
< 5.18.0 |
5.18.0 |
go get github.com/go-git/go-git/v5@v5.18.0 |
| Go | github.com/go-git/go-git/v6 |
< 6.0.0-alpha.2 |
6.0.0-alpha.2 |
go get github.com/go-git/go-git/v6@v6.0.0-alpha.2 |
Per OSV / GitHub Advisories (GHSA-3xc5-wrhm-f963, GO-2026-5105). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| go-git_project | go-git | < 5.18.0 |
| go-git_project | go-git | 6.0.0 |
Official advisories
- Security update for alloy · SUSE · openSUSE-SU-2026:21899-1 · Sep 21, 2026 Critical
- Security update for alloy · SUSE · SUSE-SU-2026:23853-1 · Sep 21, 2026 Critical
- Security update for alloy · SUSE · SUSE-SU-2026:23865-1 · Sep 21, 2026 Critical
- Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update · Red Hat · RHSA-2026:35111 · Jul 3, 2026 Critical
- Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update · Red Hat · RHSA-2026:17669 · May 21, 2026 High
Also: SUSE (+20)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Product Release Notes
- github.com Product Release Notes
- github.com Vendor Advisory