Skip to main content
← All vulnerabilities
CVE-2026-33762GHSA-GM2X-2G9H-CCM8GO-2026-4909

go-git: Missing validation decoding Index v4 files leads to panic

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.17.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

go-git is an extensible git implementation library written in pure Go. Prior to version 5.17.1, go-git’s index decoder for format version 4 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. This issue only affects Git index format version 4. Earlier formats (go-git supports only v2 and v3) are not vulnerable to this issue. This issue has been patched in version 5.17.1.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • go-git go-git

    fixed in 5.17.1

  • github.com/go-git/go-git/v5Go

    fixed in 5.17.1

  • github.com/go-git/go-gitGo

    All versions

  • github.com/go-git/go-git/v4Go

    All versions

References 2

GitHub · go-git/go-git