CVE-2026-45022
HIGH 7.0CVSS 4.0go-git's improper parsing of specially crafted objects may lead to inconsistent interpretation compared to upstream Git
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.
- Published
- 27 May 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-180CWE-345
- Also known as
- GHSA-389r-gv7p-r3rpGO-2026-5074
- Sources
- NVDJSONOSV GHSA-389r-gv7p-r3rpJSONOSV GO-2026-5074JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | 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/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 |
| OSV | GitHub | CVSS 4.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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | go-git_project | go-gitcpe:2.3:a:go-git_project:go-git:*:*:*:*:*:go:*:* |
< 5.19.0 | 5.19.0 |
| NVD | go-git_project | go-gitcpe:2.3:a:go-git_project:go-git:6.0.0:alpha1:*:*:*:go:*:* |
= 6.0.0 | |
| NVD | go-git_project | go-gitcpe:2.3:a:go-git_project:go-git:6.0.0:alpha2:*:*:*:go:*:* |
= 6.0.0 | |
| OSV | Go | github.com/go-git/go-git/v6 | >= 6.0.0-alpha.1, < 6.0.0-alpha.3 | 6.0.0-alpha.3 |
| OSV | Go | github.com/go-git/go-git/v5 | < 5.19.0 | 5.19.0 |
References
- https://github.com/go-git/go-git/security/advisories/GHSA-389r-gv7p-r3rp · Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-45022 · ADVISORY
- https://github.com/go-git/go-git · PACKAGE
- https://github.com/go-git/go-git/releases/tag/v5.19.0 · WEB
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 27 May 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Jul 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 11 May 2026)