Live threats

All CVEs / Go-git Project

CVE-2026-45022Go-git Project Go-git

High 7.0

Priority
42
CVSS 4.0
7.0
EPSS
—
Auth required
Yes
Published
May 27, 2026
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-180, CWE-345
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Go-git.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
go-git_projectgo-git< 5.19.0
go-git_projectgo-git6.0.0
go-git_projectgo-git6.0.0

Official advisories

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.