CVE-2026-45022Go-git Project Go-git
High 7.0
Follow: this CVE · Go-git Project · Go-git Project Go-git We alert you by email or Slack (account required).
- Priority
- 42
- CVSS 4.0
- 7.0
- EPSS
- —
- Auth required
- Yes
- Published
- May 27, 2026
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
go-git is an extensible git implementation library written in pure Go. Prior to 5.19.0 and 6.0.0-alpha.3, go-git may parse malformed Git objects in a way that differs from upstream Git. When commit or tag objects contain ambiguous or malformed headers, go-git’s decoded representation may expose values differently from how Git itself would interpret or reject the same object. Additionally, go-git’s commit signing and verification logic operates over commit data reconstructed from go-git’s parsed representation rather than the original raw object bytes. As a result, go-git may sign or verify a commit payload that is not byte-for-byte equivalent to the object stored in the repository. This can cause a signature to appear valid for a commit whose displayed or effective metadata differs from the object that was intended to be signed. This vulnerability is fixed in 5.19.0 and 6.0.0-alpha.3.
What to do
- Apply the vendor's security update for Go-git.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/go-git/go-git/v5 |
< 5.19.0 |
5.19.0 |
go get github.com/go-git/go-git/v5@v5.19.0 |
| Go | github.com/go-git/go-git/v5 |
< 5.19.0 |
5.19.0 |
go get github.com/go-git/go-git/v5@v5.19.0 |
| Go | github.com/go-git/go-git/v6 |
≥ 6.0.0-alpha.1 < 6.0.0-alpha.3 |
6.0.0-alpha.3 |
go get github.com/go-git/go-git/v6@v6.0.0-alpha.3 |
Per OSV / GitHub Advisories (GHSA-389r-gv7p-r3rp, GO-2026-5074). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| go-git_project | go-git | < 5.19.0 |
| go-git_project | go-git | 6.0.0 |
| go-git_project | go-git | 6.0.0 |
Official advisories
- Security update for govulncheck-vulndb · SUSE · openSUSE-SU-2026:21551-1 · Aug 10, 2026 Critical
- Security update for govulncheck-vulndb · SUSE · SUSE-SU-2026:23216-1 · Aug 10, 2026 Critical
- Security update for govulncheck-vulndb · SUSE · SUSE-SU-2026:23227-1 · Aug 10, 2026 Critical
Also: SUSE (+1)
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 Vendor Advisory