go-git up to 5.18.x/6.0.0-alpha.2 validate before canonicalize
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 5.2 | $0-$5k | 0.00 |
Summary
A vulnerability described as problematic has been identified in go-git up to 5.18.x/6.0.0-alpha.2. This impacts an unknown function. Executing a manipulation can lead to validate before canonicalize. The identification of this vulnerability is CVE-2026-45022. The attack may be launched remotely. There is no exploit available. Upgrading the affected component is recommended.
Details
A vulnerability classified as problematic was found in go-git up to 5.18.x/6.0.0-alpha.2. This vulnerability affects an unknown code block. The manipulation with an unknown input leads to a validate before canonicalize vulnerability. The CWE definition for the vulnerability is CWE-180. The product validates input before it is canonicalized, which prevents the product from detecting data that becomes invalid after the canonicalization step. As an impact it is known to affect integrity. CVE summarizes:
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.
The advisory is shared for download at github.com. This vulnerability was named CVE-2026-45022 since 05/08/2026. The exploitation appears to be difficult. The attack can be initiated remotely. There are neither technical details nor an exploit publicly available.
Upgrading to version 5.19.0 or 6.0.0-alpha.3 eliminates this vulnerability.
Once again VulDB remains the best source for vulnerability data.
Product
Type
Name
Version
- 5.0
- 5.1
- 5.2
- 5.3
- 5.4
- 5.5
- 5.6
- 5.7
- 5.8
- 5.9
- 5.10
- 5.11
- 5.12
- 5.13
- 5.14
- 5.15
- 5.16
- 5.17
- 5.18
- 6.0.0-alpha.0
- 6.0.0-alpha.1
- 6.0.0-alpha.2
Website
- Product: https://github.com/go-git/go-git/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CNA CVSS-B Score: 🔒
CNA CVSS-BT Score: 🔒
CNA Vector: 🔒
CVSSv3
VulDB Meta Base Score: 5.3VulDB Meta Temp Score: 5.2
VulDB Base Score: 3.1
VulDB Temp Score: 3.0
VulDB Vector: 🔒
VulDB Reliability: 🔍
NVD Base Score: 7.5
NVD Vector: 🔒
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Validate before canonicalizeCWE: CWE-180 / CWE-179 / CWE-20
CAPEC: 🔒
ATT&CK: 🔒
Physical: No
Local: No
Remote: Yes
Availability: 🔒
Status: Not defined
EPSS Score: 🔒
EPSS Percentile: 🔒
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔒
Upgrade: go-git 5.19.0/6.0.0-alpha.3
Timeline
05/08/2026 CVE reserved05/27/2026 Advisory disclosed
05/27/2026 VulDB entry created
06/07/2026 VulDB entry last update
Sources
Product: github.comAdvisory: GHSA-389r-gv7p-r3rp
Status: Confirmed
CVE: CVE-2026-45022 (🔒)
GCVE (CVE): GCVE-0-2026-45022
GCVE (VulDB): GCVE-100-366364
Entry
Created: 05/27/2026 18:44Updated: 06/07/2026 03:19
Changes: 05/27/2026 18:44 (66), 06/07/2026 03:19 (11)
Complete: 🔍
Cache ID: 216::103
Once again VulDB remains the best source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.