# CVE-2026-45022: go-git: Improper parsing of specially crafted objects may lead to inconsistent interpretation compared to upstream Git

> go-git library may incorrectly parse malformed Git objects, causing signature verification to pass for commits with altered metadata.

- **Severity:** High 7.0 (`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`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 27 May 2026
- **Updated:** 27 May 2026
- **Also known as:** BELL-CVE-2026-45022, CLEANSTART-2026-CD37394, CLEANSTART-2026-QM97024, CLEANSTART-2026-RC37242, CLEANSTART-2026-WJ78227, DEBIAN-CVE-2026-45022, GHSA-389r-gv7p-r3rp, GO-2026-5074, MINI-2339-hqr4-878w, MINI-25qr-6cmp-v45p, MINI-26pf-v923-23mv, MINI-27v9-4377-jvqp, MINI-2945-rqgx-7j7m, MINI-2vwx-6678-9jqc, MINI-2xvv-3953-pxr5, MINI-35gc-px9c-5pw5, MINI-35mw-v76g-hr7x, MINI-367x-q7mv-f6xv, MINI-37cm-f6f8-7qqj, MINI-394f-jf2w-62xq, MINI-3h77-4rpc-5m23, MINI-3hwr-mg45-ccc9, MINI-3pcr-9m8g-c6cq, MINI-3vhx-5w9q-63w8, MINI-432f-vrwf-gpcp, MINI-44vv-xmgq-w794, MINI-45vx-qqqw-7rwr, MINI-47rp-jf4x-f492, MINI-4jr4-mfjh-h94r, MINI-4mgr-xx4g-j4gx, MINI-4p4f-fxg2-mjx6, MINI-4p84-g29c-pjxh, MINI-4pjx-mfx3-gppc, MINI-4prx-92f8-m2gp, MINI-4v25-hvm2-hp78, MINI-558h-27hh-xvpf, MINI-55vh-ppr2-5wpc, MINI-56f9-r345-8g9v, MINI-59jc-23xj-q9gf, MINI-5fw6-hxg6-62cg, MINI-5vw6-j6xw-ffrh, MINI-5w74-jj2v-474g, MINI-5wrw-7qwr-h8rp, MINI-5wxv-48r4-53v5, MINI-5xg2-6m35-72p3, MINI-5xx5-3528-9wrq, MINI-626p-mjg2-8mfp, MINI-633c-gvjf-h9gx, MINI-68x8-phf6-4whj, MINI-6f56-g8r5-xj8w, MINI-6jcw-55v6-592v, MINI-6mh7-3h77-mxwq, MINI-6vwh-p5cx-c23m, MINI-6x8c-2fm6-prq7, MINI-722f-c4p8-fj76, MINI-73hj-95mw-m7vv, MINI-7726-cx9h-8cc4, MINI-7gg9-9vjv-28m7, MINI-7mp3-84jx-9542, MINI-7qh5-9qmm-ccmw, MINI-7v4f-7cpj-jvfp, MINI-7vf4-6882-vrx9, MINI-7x59-9879-vc2j, MINI-8427-w35w-p75x, MINI-85hg-vf5w-894f, MINI-87p4-qvj2-7rc3, MINI-883p-49gw-fvww, MINI-88c5-qhh5-6g27, MINI-8cm2-jw34-3rxm, MINI-8gj7-9jg5-vpqg, MINI-8gr6-3q98-6rg3, MINI-8q2j-6mgm-r89w, MINI-8rvf-5pc5-x5pj, MINI-8vj3-wx7g-pffm, MINI-8w8r-chjg-w5cg, MINI-93pq-qcvf-4gf4, MINI-94r3-f4g7-mqjr, MINI-95fq-pg9m-68px, MINI-96hj-3xj4-h2gg, MINI-977r-2894-7rhj, MINI-998m-qpwr-fxhw, MINI-9c7x-4xx5-g5p6, MINI-9ccq-85wc-r4jm, MINI-9cf8-p892-w85p, MINI-9gcp-5pf5-j3xq, MINI-9mmf-wxw4-rqfw, MINI-9pr6-f6wr-x6fv, MINI-9rmv-4w54-5p23, MINI-9wqm-q8c4-3wqq, MINI-9xx7-3pc8-qv45, MINI-c4fh-5wx7-qq94, MINI-c9v6-fgpg-fhcm, MINI-c9wr-55r8-6xgg, MINI-cc9g-92wc-vv54, MINI-cj34-997v-r59j, MINI-cpx2-mxjc-3wv3, MINI-cvmc-m3qh-8m8p, MINI-f985-8v9m-pp37, MINI-fhwr-qqhm-924p, MINI-fjvc-wrm7-389j, MINI-fq47-mx76-j4g9, MINI-fvc4-hf5h-38h3, MINI-fvw9-jfq3-xwvq, MINI-fwfw-pwcm-j984, MINI-g4r2-6776-4p6q, MINI-gh53-58fq-gw4g, MINI-gj45-x8g3-hfmh, MINI-gmvf-jg6v-3hrm, MINI-gqcx-r34j-f4c6, MINI-grx2-5jr7-63gf, MINI-h696-6p44-c6qv, MINI-h86g-g7mj-vjvr, MINI-hc37-5c89-6g7v, MINI-hhhw-f29g-q8rf, MINI-hw6w-248v-mfvm, MINI-j284-gm88-2rjf, MINI-j67x-vwj9-x469, MINI-jf48-365r-52w7, MINI-jpmg-6hwh-5c8w, MINI-jxcq-64j9-8mpw, MINI-m66q-f89x-q42f, MINI-m6fc-r777-phr8, MINI-mh66-wgcv-pf9f, MINI-mhgx-5w95-pj5v, MINI-mj8q-r53c-h4w7, MINI-mv42-xjf3-4h4c, MINI-mw87-vp7g-cxp2, MINI-mwc4-5p86-jh83, MINI-p6m2-vvj3-r6cp, MINI-pjmm-j7x4-jhr9, MINI-pw74-wh35-5mrg, MINI-q28h-mp42-pc4m, MINI-q4wp-353j-f756, MINI-q5gm-6rm7-2q5g, MINI-q6qm-9vf3-3qrm, MINI-q782-wg8x-r5qx, MINI-qfw4-93x7-p459, MINI-qh48-4cxg-h7vr, MINI-qxhp-6gh9-mgh7, MINI-qxjf-9mwr-fff2, MINI-r257-3mpf-rhv7, MINI-r28f-g489-484q, MINI-r3jj-9rr2-77wv, MINI-r6g9-28qr-58j9, MINI-r6pq-567v-7r7m, MINI-r6qh-c4px-w4x6, MINI-r6qp-8vrw-9j34, MINI-r6wr-72j5-h5gg, MINI-r86c-6r24-5jpr, MINI-rcq6-4f4f-8hx3, MINI-rmjj-5x6w-fg2h, MINI-rr29-98m4-63r4, MINI-rr9j-mw49-g79p, MINI-rrwc-9f6x-gm3w, MINI-v2w5-8p4c-xq92, MINI-v3x6-89r7-87f5, MINI-v5pr-8wq4-vf4p, MINI-v6pp-c5x5-57xg, MINI-vfr9-wr8w-frcv, MINI-vhcc-f9vg-wfj9, MINI-vjpm-34c2-5r2q, MINI-vm27-wxpf-7p97, MINI-vqgx-prxv-9v84, MINI-vqx4-g3m9-vpfj, MINI-vv5w-hpcw-qqqv, MINI-vvcj-4hp9-hvjx, MINI-vwp8-fm9j-69qj, MINI-vx72-5mmw-p9px, MINI-w2ch-pm5x-2j26, MINI-w2v9-98cj-7g88, MINI-w462-v46w-wx76, MINI-w6gr-xf6j-722h, MINI-w77p-2r43-qv96, MINI-w9jc-chh8-39w3, MINI-wfjj-3m87-pq9m, MINI-whrm-pfqx-x276, MINI-wmh7-j28h-w4rc, MINI-wp5v-2mj2-398g, MINI-wrvf-qqwc-78g8, MINI-wvj8-874x-rmwp, MINI-www4-j3hq-wgwv, MINI-x334-977m-754q, MINI-x98m-hcx7-m3v3, MINI-xcpx-xqgq-3g39, MINI-xm9q-r49w-wcvq, MINI-xx9r-x3fc-h8hf, ROOT-APP-GOBINARY-CVE-2026-45022, UBUNTU-CVE-2026-45022, openSUSE-SU-2026:10769-1

## What is CVE-2026-45022?

CVE-2026-45022 is a high-severity vulnerability in go-git, published on 27 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.

### Official 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.

Weakness: CWE-345 (Insufficient Verification of Data Authenticity), CWE-180 (Incorrect Behavior Order: Validate Before Canonicalize)

## Which versions are affected by CVE-2026-45022?

5 open source packages ship an affected version, including github.com/go-git/go-git/v5 and github.com/go-git/go-git/v6. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/go-git/go-git/v5` | Go | All versions | 5.19.0 |
| `github.com/go-git/go-git/v5` | Go | All versions | 5.19.0 |
| `github.com/go-git/go-git/v5` | Go | All versions | 5.19.0 |
| `github.com/go-git/go-git/v6` | Go | From 6.0.0-alpha.1 | 6.0.0-alpha.3 |
| `github.com/go-git/go-git/v6` | Go | From 6.0.0-alpha.1 | 6.0.0-alpha.3 |
| `flux2-cli` | openSUSE:Tumbleweed | All versions | 2.8.7-1.1 |

Products: Go-Git Project Go-Git.

## How do I fix CVE-2026-45022?

Upgrade github.com/go-git/go-git/v5 to 5.19.0 or later.

## Is CVE-2026-45022 being exploited?

There is no known exploitation of CVE-2026-45022 in the wild and no public exploit code.

## Other vulnerabilities in go-git

- [CVE-2023-49569](https://insights.sbomify.com/CVE-2023-49569/): Maliciously crafted Git server replies can lead to path traversal and RCE on go-git clients (critical 9.8)
- [CVE-2025-21613](https://insights.sbomify.com/CVE-2025-21613/): go-git has an Argument Injection via the URL field (critical 9.2)
- [CVE-2025-21614](https://insights.sbomify.com/CVE-2025-21614/): go-git clients vulnerable to DoS via maliciously crafted Git server replies (high 7.5)
- [CVE-2023-49568](https://insights.sbomify.com/CVE-2023-49568/): Maliciously crafted Git server replies can cause DoS on go-git clients (high 7.5)
- [CVE-2026-45571](https://insights.sbomify.com/CVE-2026-45571/): go-git: Crafted repositories may modify main and submodule .git directories (medium 5.4)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-45022 and fix it if it is affected.

What it is: CVE-2026-45022 is a high-severity vulnerability in go-git, published on 27 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-45022 in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/go-git/go-git/v5 (Go): affected all versions; fixed in 5.19.0
- github.com/go-git/go-git/v5 (Go): affected all versions; fixed in 5.19.0
- github.com/go-git/go-git/v5 (Go): affected all versions; fixed in 5.19.0
- github.com/go-git/go-git/v6 (Go): affected from 6.0.0-alpha.1; fixed in 6.0.0-alpha.3
- github.com/go-git/go-git/v6 (Go): affected from 6.0.0-alpha.1; fixed in 6.0.0-alpha.3

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-45022/ (Markdown: https://insights.sbomify.com/CVE-2026-45022/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-45022
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-45022
- OSV: https://osv.dev/vulnerability/CVE-2026-45022

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-45022/
Summaries are generated and may contain mistakes; the official description above is the record.
