# CVE-2026-45022: go-git signature verification bypass via malformed object parsing

Source: https://junglewise.ai/threats/cve-2026-45022-go-git-signature-verification-bypass-via-malformed-object-parsing  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-05-27. Updated: 2026-06-09  
License: CC BY 4.0 with a link back

CVE-2026-45022 · Severity: high · CVSS 4 · Published 2026-05-27

go-git is a library used by developers to interact with Git repositories in the Go programming language. A vulnerability in how it handles malformed data could allow an attacker to trick the system into verifying a digital signature for a commit that has actually been modified. This could lead to the acceptance of unauthorized code changes or falsified author information in software development workflows.

Technologies: [github.com/go-git/go-git/v5 (Go)](https://junglewise.ai/threats/technologies/github-com-go-git-go-git-v5), [github.com/go-git/go-git/v6 (Go)](https://junglewise.ai/threats/technologies/github-com-go-git-go-git-v6), [Go-Git](https://junglewise.ai/threats/technologies/go-git). Vendors: [Go](https://junglewise.ai/threats/vendors/go), [Go-Git](https://junglewise.ai/threats/vendors/go-git).

## Quick answers

**Is CVE-2026-45022 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-45022 being exploited in the wild.

**How severe is CVE-2026-45022?** High severity, with a CVSS score of 4, published 27 May 2026.

**Which products and versions are affected?** github.com/go-git/go-git/v5 (Go) < 5.19.0, SEMVER:introduced=0,fixed=5.19.0; github.com/go-git/go-git/v6 (Go) >= 6.0.0-alpha.1, <= 6.0.0-alpha.2, SEMVER:introduced=6.0.0-alpha.1,fixed=6.0.0-alpha.3; Go-Git < 5.19.0.

**Is there a fix for CVE-2026-45022?** Yes. github.com/go-git/go-git/v5 (Go): upgrade to 5.19.0 or later; github.com/go-git/go-git/v6 (Go): upgrade to 6.0.0-alpha.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-45022 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-45022?** Check whether you run github.com/go-git/go-git/v5 (Go), github.com/go-git/go-git/v6 (Go) or Go-Git at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/go-git/go-git/v5 (Go): upgrade to 5.19.0 or later

  ```sh
  go get github.com/go-git/go-git/v5@v5.19.0
  ```

- github.com/go-git/go-git/v6 (Go): upgrade to 6.0.0-alpha.3 or later

  ```sh
  go get github.com/go-git/go-git/v6@v6.0.0-alpha.3
  ```


## Technical details

The vulnerability arises from go-git's improper parsing of malformed Git commit or tag objects, which differs from the behavior of the standard Git implementation. Specifically, go-git's signing and verification logic operates on reconstructed data from its internal parsed representation rather than the original raw bytes. An attacker can craft objects with ambiguous or malformed headers that go-git interprets differently than upstream Git. This discrepancy allows for a signature to appear valid even if the displayed metadata (like author or commit message) differs from what was originally signed. The issue is fixed in versions 5.19.0 and 6.0.0-alpha.3.

## Affected products

- go-git go-git/v5 < 5.19.0
- go-git go-git/v6 >= 6.0.0-alpha.1, <= 6.0.0-alpha.2

## Identifiers

- CVE-2026-45022
- GHSA-389r-gv7p-r3rp
- GO-2026-5074

## Timeline

- 2026-05-06: disclosed
- 2026-05-11: advisory

## References

- [https://api.github.com/users/adityasaky](https://api.github.com/users/adityasaky)
- [https://github.com/adityasaky](https://github.com/adityasaky)
- [https://api.github.com/users/adityasaky/gists%7B/gist_id%7D](https://api.github.com/users/adityasaky/gists%7B/gist_id%7D)
- [https://api.github.com/users/adityasaky/repos](https://api.github.com/users/adityasaky/repos)
- [https://avatars.githubusercontent.com/u/8928778?v=4](https://avatars.githubusercontent.com/u/8928778?v=4)
- [https://api.github.com/users/adityasaky/events%7B/privacy%7D](https://api.github.com/users/adityasaky/events%7B/privacy%7D)

## Related threats

- [go-git path traversal via malicious reference names](https://junglewise.ai/threats/cve-2026-71557-go-git-path-traversal-via-malicious-reference-names)
- [go-git symlink traversal in worktree operations](https://junglewise.ai/threats/cve-2026-71556-go-git-symlink-traversal-in-worktree-operations)
- [GO-2026-5693 - Go-git: Malformed Git object data may cause panics or resource exhaustion in github.com/go-git/go-git](https://junglewise.ai/threats/go-2026-5693-go-git-malformed-git-object-data-may-cause-panics-or-9c82fa09)
- [go-git go-billy denial of service via improper input handling](https://junglewise.ai/threats/cve-2026-44740-go-git-go-billy-denial-of-service-via-improper-input-handling)
- [go-git DoS via malformed Git object data](https://junglewise.ai/threats/go-git-dos-via-malformed-git-object-data-a3075e9b)
