cve.bz

CVE-2026-45022 go-git project go-git

7.0 highEPSS 0.2%Fix available

High (7.0) in go-git project go-git. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/go-git/go-git/v6 6.0.0-alpha.3.

On this page
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.

Severity

CVSS 4.0

7.0 high
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

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 5th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-05-27. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-180 Incorrect Behavior Order: Validate Before Canonicalize
CWE-345 Insufficient Verification of Data Authenticity
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-45022 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-45022?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-45022?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-45022 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
go-git_project:go-gitbefore 5.19.0
go-git_project:go-git6.0.0:alpha1
go-git_project:go-git6.0.0:alpha2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-389r-gv7p-r3rpGogithub.com/go-git/go-git/v6>=6.0.0-alpha.1 <6.0.0-alpha.36.0.0-alpha.3
GHSA-389r-gv7p-r3rpGogithub.com/go-git/go-git/v5<5.19.05.19.0
GO-2026-5074Gogithub.com/go-git/go-git/v5<5.19.05.19.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13golang-github-go-git-go-gitno fix listedDEBIAN-CVE-2026-45022
Debian14golang-github-go-git-go-git5.19.1-1DEBIAN-CVE-2026-45022
Debian14golang-github-go-git-go-git-v66.0.0~alpha4-1DEBIAN-CVE-2026-45022
Ubuntu25.10, 26.10, Pro:22.04:LTS and 2 moregolang-github-go-git-go-gitno fix listedUBUNTU-CVE-2026-45022
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0govulncheck-vulndb0.0.20260727T201416-160000.1.1SUSE-SU-2026:23216-1 SUSE-SU-2026:23227-1
openSUSELeap 16.0govulncheck-vulndb0.0.20260727T201416-160000.1.1openSUSE-SU-2026:21551-1
openSUSETumbleweedflux2-cli2.8.7-1.1openSUSE-SU-2026:10769-1
Alpaquitastreamgrype0.114.0-r0BELL-CVE-2026-45022
Alpaquitastreamosv-scanner2.4.0-r0BELL-CVE-2026-45022

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpaquita.

Attack patterns (CAPEC)

  • CAPEC-3 Using Leading 'Ghost' Character Sequences to Bypass Input Filters Likelihood: Medium · Severity: Medium
  • CAPEC-71 Using Unicode Encoding to Bypass Validation Logic Likelihood: Medium · Severity: High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-80 Using UTF-8 Encoding to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-267 Leverage Alternate Encoding Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-345 (12).

References

Check your stackJSON