go-git Improper Parsing Vulnerability Leading to Signature Verification Issues

Vulnerability

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.

Impact

This vulnerability can lead to incorrect commit signature verification, allowing a signature to be deemed valid even when the associated metadata does not accurately represent the signed object.

Remediation

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.

Added: May 27, 2026, 4:56 PM
Updated: May 27, 2026, 4:56 PM

Vulnerability Rating

Custom Algorithm
spread
5.4
impact
2.5
exploitability
4.7
remediation
7.7
relevance
9.7
threat
0.0
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.