CVE-2026-45022 Details
Description
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.
A vulnerability exists in go-git, a Git implementation library in Go, prior to versions 5.19.0 and 6.0.0-alpha.3. The issue arises from go-git’s handling of malformed Git objects, particularly in commit or tag headers, which can lead to a decoded representation that differs from upstream Git's interpretation. This discrepancy can cause problems in commit signing and verification, as go-git may process a commit payload that is not an exact byte-for-byte match with the original object in the repository. Consequently, a signature might be incorrectly validated for a commit whose metadata does not accurately reflect the intended signed object.
Users should upgrade to go-git versions 5.19.0 or 6.0.0-alpha.3 or later. Instructions for upgrading can be found in the go-git repository.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 27, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/go-git/go-git/security/advisories/GHSA-389r-gv7p-r3rp | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-180 | Incorrect Behavior Order: Validate Before Canonicalize | [email protected] |
| CWE-345 | Insufficient Verification of Data Authenticity | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| go-git project go-git | < 5.19.0 6.0.0 alpha1 6.0.0 alpha2 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 4, 2026 | Initial Analysis | [email protected] |
| May 27, 2026 | New CVE Received | [email protected] |