A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-45022

CVE-2026-45022: go-git Information Disclosure Flaw

CVE-2026-45022 is an information disclosure vulnerability in go-git that causes malformed Git objects to be parsed differently than upstream Git. This post covers technical details, affected versions, and mitigations.

Published: May 28, 2026

CVE-2026-45022 Overview

CVE-2026-45022 affects go-git, an extensible Git implementation library written in pure Go. Versions prior to 5.19.0 and 6.0.0-alpha.3 parse malformed Git objects differently from upstream Git. When commit or tag objects contain ambiguous or malformed headers, go-git decodes them inconsistently with how canonical Git would interpret or reject the same object. The commit signing and verification logic operates over reconstructed data rather than original raw object bytes. As a result, go-git can sign or verify a commit payload that is not byte-for-byte equivalent to the object stored in the repository. This vulnerability is classified under [CWE-180] (Incorrect Behavior Order: Validate Before Canonicalize).

Critical Impact

A cryptographic signature may appear valid for a commit whose displayed or effective metadata differs from the object that was actually signed, undermining trust in signed commits.

Affected Products

  • go-git versions prior to 5.19.0
  • go-git versions prior to 6.0.0-alpha.3
  • Applications and tooling that rely on go-git for commit signing or signature verification

Discovery Timeline

  • 2026-05-27 - CVE-2026-45022 published to NVD
  • 2026-05-27 - Last updated in NVD database

Technical Details for CVE-2026-45022

Vulnerability Analysis

The vulnerability stems from a divergence between go-git's object parser and upstream Git's canonical parser. Git commit and tag objects are plain-text structures with a header section followed by a message body. When these objects contain malformed or ambiguous headers, such as duplicated fields, unexpected whitespace, or non-canonical ordering, go-git's decoder accepts and normalizes them. Upstream Git may reject the same object or interpret the fields differently. An attacker who controls object content can craft a commit that displays one set of metadata in go-git tooling while presenting different metadata to standard Git clients.

Root Cause

The signing and verification pipeline reconstructs commit data from go-git's internal parsed representation instead of hashing the original raw object bytes. Canonical Git signature workflows operate over the exact byte stream of the object, ensuring that the signature is bound to what is stored on disk. By re-serializing parsed fields, go-git can produce a payload that differs from the original object even when no malicious change was intended. This breaks the integrity guarantee that signatures bind to specific committed bytes.

Attack Vector

An attacker with permission to push commits, submit pull requests, or otherwise introduce objects into a repository can craft a malformed commit or tag. When the object is signed or verified through go-git, the produced or accepted signature corresponds to the reconstructed payload. Downstream consumers using upstream Git see a different object, potentially with different author, committer, parent, or message fields. This enables signature confusion, audit log evasion, and supply-chain trust violations in CI/CD pipelines that rely on go-git for commit attestation.

Detection Methods for CVE-2026-45022

Indicators of Compromise

  • Commits or tags whose displayed metadata differs between go-git-based tools and the canonical git command-line client.
  • Signed commits where the object hash recomputed from raw bytes does not match the hash referenced by the signature payload.
  • Repository objects containing duplicated headers, unusual whitespace, or non-standard field ordering in commit or tag payloads.

Detection Strategies

  • Run integrity audits that re-verify commit signatures using upstream git verify-commit and compare results against go-git verification outcomes.
  • Inventory all internal tools, CI/CD systems, and Git hosting services that link against go-git and identify versions in use.
  • Scan repositories for objects that fail strict canonical Git parsing while being accepted by go-git.

Monitoring Recommendations

  • Log and alert on signature verification discrepancies between go-git-based services and reference Git implementations.
  • Track go-git library versions across the software bill of materials (SBOM) for all internal Go applications.
  • Monitor commit signing services for objects whose reconstructed payload diverges from stored object bytes.

How to Mitigate CVE-2026-45022

Immediate Actions Required

  • Upgrade go-git to version 5.19.0 or 6.0.0-alpha.3, which contain the official fix.
  • Audit recent signed commits and tags produced by go-git-based tooling for header anomalies.
  • Identify and rebuild downstream binaries and container images that embed vulnerable go-git versions.

Patch Information

The maintainers fixed the vulnerability in go-git 5.19.0 and 6.0.0-alpha.3. Both releases align object parsing with upstream Git semantics and ensure signing and verification operate on raw object bytes rather than reconstructed representations. Refer to the GitHub Security Advisory GHSA-389r-gv7p-r3rp for full remediation details.

Workarounds

  • Where upgrading is not immediately possible, perform signature verification using upstream git rather than go-git.
  • Restrict push and tag creation permissions to trusted identities to reduce the opportunity for malformed object injection.
  • Add CI checks that reject commits and tags failing canonical Git parsing before they enter protected branches.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechGo Git

  • SeverityHIGH

  • CVSS Score7.0

  • Known ExploitedNo
  • CVSS 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/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
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-180
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-41506: Go-git Information Disclosure Flaw

  • CVE-2026-45571: go-git Path Traversal Vulnerability

  • CVE-2026-45570: go-git SSH Transport RCE Vulnerability

  • CVE-2026-34165: Go-git DoS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English