Skip to main content

go-git EUVDEUVD-2026-32542

| CVE-2026-45022 HIGH
Incorrect Behavior Order: Validate Before Canonicalize (CWE-180)
2026-05-11 https://github.com/go-git/go-git GHSA-389r-gv7p-r3rp
7.0
CVSS 4.0 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain repository contributor/push access
  2. Delivery
    Craft commit or tag with malformed headers
  3. Exploit
    go-git parses metadata divergently from Git
  4. Execution
    Signature validates over reconstructed bytes
  5. Impact
    Spoofed-metadata commit trusted by downstream verifier

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Leading special element handling
Exploitation Conditions

Exploitation requires that the consuming application actually uses go-git's commit/tag signing or verification logic and treats its result as authoritative - this is the precise feature the advisory implicates (signing/verification operating over go-git's parsed representation instead of the raw object bytes). The attacker must be able to introduce a crafted Git object into the repository, consistent with the CVSS PR:L (authenticated/low-privilege, e.g. contributor or push access) and UI:N (no victim interaction). Limiting factors: AC:H reflects that producing headers go-git parses differently from canonical Git while still validating is non-trivial; the bug is inert for applications that use go-git only for ordinary clone/fetch/commit operations and do not rely on its signature verification as a trust boundary; and it affects only go-git v5 (<5.19.0) and v6 alpha builds 6.0.0-alpha.1-alpha.2. There is no special remote service or default-config exposure beyond software that embeds the vulnerable library in a signature-trust path.

Impact

The CVSS 4.0 vector (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, base 7.0) describes an integrity-only issue: no confidentiality or availability impact, but high integrity impact to both the vulnerable component (VI:H) and a subsequent system (SI:H), reachable over the network with low privileges and no user interaction. The key tempering signal is AC:H - successfully crafting ambiguous headers that go-git parses one way while a signer/verifier trusts another is non-trivial, which is consistent with a parser-differential attack rather than a trivial one. Note a data conflict: the supplied Tags say 'Information Disclosure,' but both the CVSS vector and the advisory describe a signature/integrity (spoofing) problem with no confidentiality impact - treat the 'Information Disclosure' tag as mislabeled and prioritize this as an integrity/trust issue. No EPSS score was provided, the CVE is not in CISA KEV, and no proof-of-concept was supplied, so there is no evidence of widespread or active exploitation; real-world priority is high specifically for systems that rely on go-git to verify commit/tag signatures as a trust gate (e.g., sigstore/gitsign-style flows), and low for consumers that use go-git only for ordinary repository operations without trusting its signature verification.

Exploit ScenarioDerived

An attacker with contributor/push access crafts a commit or tag object with ambiguous or malformed headers, gets it signed (or signs it themselves) such that go-git's reconstructed payload validates as a legitimate signature, while the effective metadata that go-git surfaces - author, committer, or message - differs from the signed bytes. A downstream system that trusts go-git's verification result (for example a gitsign/sigstore-based admission check) then accepts the commit as authentic, allowing spoofed provenance or metadata to pass a trust gate. No public proof-of-concept is identified, and the high attack complexity (AC:H) means crafting the divergent object reliably is the main barrier.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – May 27, 2026

Commit and tag signature confusion in go-git (the pure-Go implementation of Git) lets a crafted Git object carry a signature that validates while its effective metadata differs from what was actually signed. Because go-git parses ambiguous or malformed object headers differently from canonical Git, and because its signing/verification path operates over a reconstructed representation rather than the raw object bytes, an attacker with contributor access can create commits whose displayed author/committer/metadata diverges from the signed payload - undermining downstream trust decisions (the issue was originally surfaced through sigstore/gitsign). Affected releases are go-git v5 before 5.19.0 and v6 alpha builds 6.0.0-alpha.1 through 6.0.0-alpha.2. There is no public exploit identified at time of analysis, it is not listed in CISA KEV, and no EPSS score was provided in the source data.

Earlier versions of this analysis (2)
v2 May 27, 2026 - 19:43 cvss changed CVSS 7.0

Signature verification can be subverted in go-git, the pure-Go implementation of Git (used by tools such as sigstore/gitsign), because the library parses malformed commit and tag object headers differently from canonical Git and then signs or verifies over its own reconstructed representation rather than the raw object bytes. A low-privileged attacker (CVSS 4.0 PR:L) who can introduce a crafted object into a repository can make a cryptographic signature appear valid for a commit/tag whose displayed or effective metadata (e.g., author, committer, headers) differs from what was actually signed, breaking the integrity guarantee that signed commits are supposed to provide. There is no public exploit identified at time of analysis and the CVE is not in CISA KEV; the rated High severity (7.0) is driven entirely by integrity impact, and high attack complexity (AC:H) constrains practical exploitation.

v1 May 11, 2026 - 15:15

Signature verification bypass in go-git allows attackers to craft Git commit or tag objects that display different metadata than what was actually signed, enabling potential supply chain attacks. The vulnerability stems from go-git parsing malformed Git objects differently than upstream Git, then signing or verifying reconstructed representations rather than original raw bytes. This creates a discrepancy where a signature appears valid for a commit whose effective content differs from the signed object. Publicly available exploit code exists (reported by security researchers at bugbunny.ai and wayphinder). EPSS risk data not available at time of analysis. No active exploitation confirmed (not in CISA KEV).

RemediationAI

Vendor-released patch: upgrade to go-git v5 5.19.0 or, for the v6 line, 6.0.0-alpha.3 (and abandon unsupported pre-v5 versions entirely). This is a library dependency, so update the module in go.mod, run go get/go mod tidy, and rebuild every service that vendors go-git rather than relying on a system package. No header-level workaround is published; until you can upgrade, the actionable compensating control is to stop treating go-git's commit/tag signature verification as a security boundary - instead verify signatures with canonical git (e.g., shell out to git verify-commit/git verify-tag) or recompute and compare the raw object bytes before trusting a signature, accepting the trade-off of added complexity and a dependency on a git binary. Where go-git is used to verify untrusted, externally contributed repositories, restrict who can push/contribute objects and re-validate critical commits out of band. Track the fix via GHSA-389r-gv7p-r3rp (https://github.com/go-git/go-git/security/advisories/GHSA-389r-gv7p-r3rp).

Affected VersionsENISA

go-git < 5.19.0
go-git 6.0.0-alpha.1, < 6.0.0-alpha.3

Affected Packages

go github.com/go-git/go-git/v5 fix: 5.19.0
go github.com/go-git/go-git/v6 fix: 6.0.0-alpha.3
euvd go_git fix: 5.19.0
euvd go_git_6_0_0_alpha_1 fix: 6.0.0-alpha.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 4 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

go-git is a widely embedded, dependency-free Go library that reads and writes Git repositories, used by tooling such as gitsign, Flux, and various CI/supply-chain systems. Git stores commit and tag objects as text with structured headers (tree, parent, author, committer, gpgsig, etc.) followed by a message; canonical Git applies strict rules about how these headers are ordered, terminated, and rejected. The flaw maps to CWE-180 (Incorrect Behavior Order: Validate Before Canonicalize): go-git decodes the object into an in-memory struct and then reconstructs the byte stream for signing or verification, so the bytes it signs/verifies are not guaranteed to be identical to the bytes stored on disk. When headers are malformed or ambiguous, go-git's parsed view can diverge from how upstream Git would interpret (or reject) the same object, breaking the byte-for-byte invariant that cryptographic commit signatures depend on. The CPE data scopes this to two module major versions, pkg:go/github.com_go-git_go-git_v5 and pkg:go/github.com_go-git_go-git_v6.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 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

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
High
Subsequent system: Availability
None

Lifecycle Timeline

4
Analysis Updated
May 27, 2026 - 19:43 vuln.today
v3 - CVSS changed
Analysis Updated
May 27, 2026 - 19:43 vuln.today
v2 - CVSS changed
CVSS changed
May 27, 2026 - 19:37 NVD
7.0 (HIGH)
CVE Published
May 11, 2026 - 14:48 nvd
HIGH

DescriptionGitHub Advisory

Impact

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.

Patches

Users should upgrade to a patched version in order to mitigate this vulnerability. Versions prior to v5 are likely to be affected, users are recommended to upgrade to a supported go-git version.

Credit

Thanks to @bugbunny-research (https://bugbunny.ai/) for reporting this to sigstore/gitsign, and to @wlynch, @patzielinski and @adityasaky for coordinating the disclosure with the go-git project. :bow: :1st_place_medal:

Thanks to @wayphinder for reporting this to the go-git project. :bow:

Executive ViewAI

Why It Matters

A vulnerability in go-git, a development library for Git operations, allows attackers with contributor access to create commits with forged metadata while maintaining valid signatures. This threatens the integrity of software supply chains and development pipelines where organizations rely on go-git for cryptographic verification of code changes.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 100% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

35
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +35
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Product Status
openSUSE Tumbleweed Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy