The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-33762

CVE-2026-33762: Go-git Buffer Overflow Vulnerability

CVE-2026-33762 is a buffer overflow vulnerability in Go-git library that triggers runtime panics through malicious index files. This article covers the technical details, affected versions, impact, and mitigation.

Published: April 2, 2026

CVE-2026-33762 Overview

CVE-2026-33762 is an out-of-bounds vulnerability in go-git, an extensible Git implementation library written in pure Go. The vulnerability exists in the index decoder for format version 4, which fails to validate the path name prefix length before applying it to the previously decoded path name. A maliciously crafted index file can trigger an out-of-bounds slice operation, resulting in a runtime panic during normal index parsing.

Critical Impact

A specially crafted Git index file can cause applications using go-git to crash via runtime panic, potentially leading to denial of service in services that process untrusted Git repositories.

Affected Products

  • go-git versions prior to 5.17.1
  • Applications and services using go-git to parse Git index files
  • Git index format version 4 implementations in go-git

Discovery Timeline

  • 2026-03-31 - CVE CVE-2026-33762 published to NVD
  • 2026-04-02 - Last updated in NVD database

Technical Details for CVE-2026-33762

Vulnerability Analysis

This vulnerability is classified as CWE-129 (Improper Validation of Array Index). The go-git library's index decoder for Git index format version 4 contains a flaw in how it handles path name prefix lengths. During the decoding process, the library applies a prefix length value to reconstruct file paths from a previously decoded path name without first validating that the prefix length is within valid bounds.

When processing a maliciously crafted index file, an attacker can supply an invalid prefix length value that exceeds the actual length of the previously decoded path. This causes the Go runtime to attempt an out-of-bounds slice operation, triggering a panic that terminates the application.

The vulnerability specifically affects Git index format version 4, which uses prefix compression to reduce the size of the index file by storing common path prefixes only once. Earlier formats (versions 2 and 3, which are the only other versions go-git supports) do not use this prefix compression mechanism and are therefore not vulnerable to this issue.

Root Cause

The root cause is insufficient input validation in the index decoder's handling of prefix length values. The decoder trusts the prefix length value from the index file without verifying that it falls within the valid range of the previously decoded path string. This missing bounds check allows an attacker-controlled value to cause a slice operation beyond the allocated memory bounds.

Attack Vector

Exploitation requires local access and user interaction. An attacker must craft a malicious Git index file with an invalid prefix length value and convince a user or automated system to process this file using an application built with a vulnerable version of go-git.

The attack vector involves:

  1. Creating a Git index file with format version 4
  2. Manipulating the prefix length field to contain a value larger than the previous path entry
  3. Delivering the malicious index file to a target system (e.g., via a cloned repository or shared archive)
  4. Triggering index parsing through normal Git operations in applications using go-git

The vulnerability results in a denial of service condition through application crash, but does not enable code execution or data exfiltration due to Go's memory safety guarantees.

Detection Methods for CVE-2026-33762

Indicators of Compromise

  • Unexpected application crashes or panics in services using go-git for repository processing
  • Error logs containing panic messages related to slice bounds or index out of range during Git index parsing
  • Presence of Git index files with format version 4 containing unusually large prefix length values

Detection Strategies

  • Monitor application logs for Go runtime panic messages specifically mentioning slice bounds errors during index operations
  • Implement dependency scanning to identify applications using go-git versions prior to 5.17.1
  • Deploy file integrity monitoring on Git repository directories to detect modifications to index files

Monitoring Recommendations

  • Configure alerting for application restarts or crash loops in services that process Git repositories
  • Implement health checks that can detect and report go-git parsing failures
  • Review application dependencies regularly using software composition analysis (SCA) tools to identify vulnerable go-git versions

How to Mitigate CVE-2026-33762

Immediate Actions Required

  • Upgrade go-git to version 5.17.1 or later immediately
  • Audit all applications and services in your environment that depend on go-git
  • Implement input validation for Git repositories received from untrusted sources
  • Consider temporarily restricting processing of Git index format version 4 files from untrusted sources

Patch Information

The go-git project has released version 5.17.1 which addresses this vulnerability by adding proper bounds checking for prefix length values before applying them to path names. The fix ensures that the prefix length does not exceed the length of the previously decoded path, preventing the out-of-bounds slice operation.

For detailed patch information, see the GitHub Release v5.17.1 and the GitHub Security Advisory GHSA-gm2x-2g9h-ccm8.

Workarounds

  • Restrict the processing of Git repositories to trusted sources only until the patch can be applied
  • Implement wrapper functions that pre-validate Git index files before passing them to go-git for parsing
  • Consider using Git index format versions 2 or 3 where possible, as these are not affected by this vulnerability
  • Deploy application-level recovery mechanisms to gracefully handle panics and prevent service disruption
bash
# Update go-git dependency to patched version
go get github.com/go-git/go-git/v5@v5.17.1

# Verify the updated version in go.mod
grep go-git go.mod

# Run dependency audit to confirm fix
go list -m -versions github.com/go-git/go-git/v5

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechGo Git

  • SeverityLOW

  • CVSS Score2.8

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-129
  • Technical References
  • GitHub Release v5.17.1
  • Vendor Resources
  • GitHub Security Advisory GHSA-gm2x-2g9h-ccm8
  • Related CVEs
  • CVE-2025-21614: Go-git Library DOS Vulnerability

  • CVE-2025-21613: Go-git RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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